Implement ON UPDATE and ON DELETE with schemas
AliusDieMorietur opened this issue · 1 comments
AliusDieMorietur commented
Support CASCADE
, RESTRICT
, NO ACTION
, SET NULL
, SET DEFAULT
for both ON UPDATE
and ON DELETE
tshemsedinov commented
- For common reference fields:
entity: { type: 'Entity', delete: 'set null', update: 'set null' }
- For many-to-many will be
{ many: 'Entity', delete: 'cascade', update: 'cascade' }
by default