metarhia/metasql

Implement ON UPDATE and ON DELETE with schemas

AliusDieMorietur opened this issue · 1 comments

Support CASCADE, RESTRICT, NO ACTION, SET NULL, SET DEFAULT for both ON UPDATE and ON DELETE

  • 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