fix: Drop invalid SetNull and SetDefault test models (#165)
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Marcelo Mendonça Soares <marcelomendoncasoares@users.noreply.github.com>
This commit is contained in:
parent
f59a90bc97
commit
e12c9dc9f0
2 changed files with 21344 additions and 4036 deletions
|
|
@ -319,7 +319,7 @@ IconData iconForTable(String table, {required bool hidden}) {
|
|||
'town' => Icons.map,
|
||||
'organization' => Icons.apartment,
|
||||
'company' => Icons.business,
|
||||
'restrict_child' || 'required_set_null_child' => Icons.link,
|
||||
'restrict_child' => Icons.link,
|
||||
'unique' || 'unique_uuid' || 'unique_composite' => Icons.key,
|
||||
'types' => Icons.data_object,
|
||||
_ when table.startsWith('fk_chain') => Icons.account_tree,
|
||||
|
|
|
|||
|
|
@ -160,14 +160,6 @@ final Map<String, TableOps> demoTableOps = {
|
|||
create: (id, label, foreignKeys) =>
|
||||
RestrictChild(id: id, name: label, parentId: foreignKeys['parentId']),
|
||||
),
|
||||
_ops<RequiredSetNullChild>(
|
||||
canCreateRoot: false,
|
||||
create: (id, label, foreignKeys) {
|
||||
final parentId = foreignKeys['parentId'];
|
||||
if (parentId == null) return null;
|
||||
return RequiredSetNullChild(id: id, name: label, parentId: parentId);
|
||||
},
|
||||
),
|
||||
_ops<Unique>(
|
||||
create: (id, label, foreignKeys) => Unique(id: id, name: label),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue