Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
setr
4 months ago
|
parent
|
context
|
favorite
| on:
Choosing a Database Schema for Polymorphic Data (2...
I mean this particular problem would be resolved if the database let you define/defend a UNIQUE constraint across tables. Then you could just do approach #2 without the psychotic check constraint.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: