python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
MySQL create both entities with cyclic foreign key
I want to have an "Entity" and many versions of it, where one of those versions is the only one which is active/used. It is also possible that the Entity is entirely deactive. So I thought o...
Jordi Reinsma
Votes: 0
Answers: 2
SQLalchemy internals and design pattern
What is the design pattern in SQLalchemy and how does it work?
I wonder how defining each column as class variable in a child class of db.Model provides necessary information to create table. How doe...
Roy
Votes: 0
Answers: 1
Relations vs data constraints in database design
To simplify the description let's assume we've got a DB model with TimeScopes (ID, start, end) and Processes with FK (TimeScopes.ID), and this is one-to-many relation where all processes holding a ref...
Krzysztof Dabrowski
Votes: 0
Answers: 1