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:
Marcelo Mendonça Soares 2026-10-08 18:21:10 -03:00 • committed by GitHub
commit e12c9dc9f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21344 additions and 4036 deletions

View file

@ -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,

View file

@ -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),
),