refactor!: Rename sync APIs and ownership spaces (#128)
This commit is contained in:
parent
4331daf661
commit
b89725f6ea
153 changed files with 43650 additions and 9417 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -12,6 +12,7 @@ part '20260902184218563/migration.dart';
|
|||
part '20260902195734685/migration.dart';
|
||||
part '20260907165715131/migration.dart';
|
||||
part '20260907170602693/migration.dart';
|
||||
part '20260914144112288/migration.dart';
|
||||
|
||||
/// Migration registry for the client-side database.
|
||||
class MigrationRegistry {
|
||||
|
|
@ -26,6 +27,7 @@ class MigrationRegistry {
|
|||
_Migration20260902195734685(),
|
||||
_Migration20260907165715131(),
|
||||
_Migration20260907170602693(),
|
||||
_Migration20260914144112288(),
|
||||
];
|
||||
|
||||
/// List of all client-side database migration versions.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class Address
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
Address._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.street,
|
||||
this.inhabitantId,
|
||||
this.inhabitant,
|
||||
|
|
@ -29,7 +29,7 @@ abstract class Address
|
|||
|
||||
factory Address({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String street,
|
||||
_isc.UuidValue? inhabitantId,
|
||||
_iensfz4m.Person? inhabitant,
|
||||
|
|
@ -40,7 +40,7 @@ abstract class Address
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
street: jsonSerialization['street'] as String,
|
||||
inhabitantId: jsonSerialization['inhabitantId'] == null
|
||||
? null
|
||||
|
|
@ -62,8 +62,8 @@ abstract class Address
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String street;
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ abstract class Address
|
|||
@_isc.useResult
|
||||
Address copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? street,
|
||||
_isc.UuidValue? inhabitantId,
|
||||
_iensfz4m.Person? inhabitant,
|
||||
|
|
@ -89,7 +89,7 @@ abstract class Address
|
|||
return {
|
||||
'__className__': 'Address',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'street': street,
|
||||
if (inhabitantId != null) 'inhabitantId': inhabitantId?.toJson(),
|
||||
if (inhabitant != null) 'inhabitant': inhabitant?.toJson(),
|
||||
|
|
@ -101,7 +101,7 @@ abstract class Address
|
|||
return {
|
||||
'__className__': 'Address',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'street': street,
|
||||
if (inhabitantId != null) 'inhabitantId': inhabitantId?.toJson(),
|
||||
if (inhabitant != null) 'inhabitant': inhabitant?.toJsonForProtocol(),
|
||||
|
|
@ -141,13 +141,13 @@ class _Undefined {}
|
|||
class _AddressImpl extends Address {
|
||||
_AddressImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String street,
|
||||
_isc.UuidValue? inhabitantId,
|
||||
_iensfz4m.Person? inhabitant,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
street: street,
|
||||
inhabitantId: inhabitantId,
|
||||
inhabitant: inhabitant,
|
||||
|
|
@ -159,14 +159,14 @@ class _AddressImpl extends Address {
|
|||
@override
|
||||
Address copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? street,
|
||||
Object? inhabitantId = _Undefined,
|
||||
Object? inhabitant = _Undefined,
|
||||
}) {
|
||||
return Address(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
street: street ?? this.street,
|
||||
inhabitantId: inhabitantId is _isc.UuidValue?
|
||||
? inhabitantId
|
||||
|
|
@ -181,8 +181,8 @@ class _AddressImpl extends Address {
|
|||
class AddressUpdateTable extends _isd.UpdateTable<AddressTable> {
|
||||
AddressUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -202,8 +202,8 @@ class AddressUpdateTable extends _isd.UpdateTable<AddressTable> {
|
|||
class AddressTable extends _isd.Table<_isc.UuidValue?> {
|
||||
AddressTable({super.tableRelation}) : super(tableName: 'address') {
|
||||
updateTable = AddressUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
street = _isd.ColumnString(
|
||||
|
|
@ -218,8 +218,8 @@ class AddressTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final AddressUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString street;
|
||||
|
||||
|
|
@ -243,7 +243,7 @@ class AddressTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
street,
|
||||
inhabitantId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ abstract class City
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
City._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.citizens,
|
||||
this.organizations,
|
||||
|
|
@ -30,7 +30,7 @@ abstract class City
|
|||
|
||||
factory City({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
List<_iensfz4m.Person>? citizens,
|
||||
List<_irjtvpke.Organization>? organizations,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class City
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
citizens: jsonSerialization['citizens'] == null
|
||||
? null
|
||||
|
|
@ -63,8 +63,8 @@ abstract class City
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ abstract class City
|
|||
@_isc.useResult
|
||||
City copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
List<_iensfz4m.Person>? citizens,
|
||||
List<_irjtvpke.Organization>? organizations,
|
||||
|
|
@ -90,7 +90,7 @@ abstract class City
|
|||
return {
|
||||
'__className__': 'City',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (citizens != null)
|
||||
'citizens': citizens?.toJson(valueToJson: (v) => v.toJson()),
|
||||
|
|
@ -104,7 +104,7 @@ abstract class City
|
|||
return {
|
||||
'__className__': 'City',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (citizens != null)
|
||||
'citizens': citizens?.toJson(valueToJson: (v) => v.toJsonForProtocol()),
|
||||
|
|
@ -154,13 +154,13 @@ class _Undefined {}
|
|||
class _CityImpl extends City {
|
||||
_CityImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
List<_iensfz4m.Person>? citizens,
|
||||
List<_irjtvpke.Organization>? organizations,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
citizens: citizens,
|
||||
organizations: organizations,
|
||||
|
|
@ -172,14 +172,14 @@ class _CityImpl extends City {
|
|||
@override
|
||||
City copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? citizens = _Undefined,
|
||||
Object? organizations = _Undefined,
|
||||
}) {
|
||||
return City(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
citizens: citizens is List<_iensfz4m.Person>?
|
||||
? citizens
|
||||
|
|
@ -194,8 +194,8 @@ class _CityImpl extends City {
|
|||
class CityUpdateTable extends _isd.UpdateTable<CityTable> {
|
||||
CityUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -208,8 +208,8 @@ class CityUpdateTable extends _isd.UpdateTable<CityTable> {
|
|||
class CityTable extends _isd.Table<_isc.UuidValue?> {
|
||||
CityTable({super.tableRelation}) : super(tableName: 'city') {
|
||||
updateTable = CityUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -220,8 +220,8 @@ class CityTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final CityUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -300,7 +300,7 @@ class CityTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class EndpointDemoAuth extends _isc.EndpointRef {
|
|||
}
|
||||
|
||||
/// Read-only inspection endpoint used by the offline-sync demo app to show the
|
||||
/// server's merged truth for the authenticated user's scope.
|
||||
/// server's merged truth for the authenticated user's space.
|
||||
/// {@category Endpoint}
|
||||
class EndpointDemoDebug extends _isc.EndpointRef {
|
||||
EndpointDemoDebug(_isc.EndpointCaller caller) : super(caller);
|
||||
|
|
@ -48,7 +48,7 @@ class EndpointDemoDebug extends _isc.EndpointRef {
|
|||
@override
|
||||
String get name => 'demoDebug';
|
||||
|
||||
/// Returns every synced domain row in the caller's scope on the server as a
|
||||
/// Returns every synced domain row in the caller's space on the server as a
|
||||
/// flat list of models. When [includeHidden] is true, the list also includes
|
||||
/// CRDT-hidden rows (conflict losers, soft-deleted rows) via the
|
||||
/// `t.includeHiddenRows` expression; otherwise only visible rows are returned.
|
||||
|
|
@ -58,40 +58,40 @@ class EndpointDemoDebug extends _isc.EndpointRef {
|
|||
/// deserializes them straight back into typed models with no per-table
|
||||
/// plumbing on either side. The client flags hidden rows by diffing a
|
||||
/// visible-only fetch against an include-hidden one.
|
||||
_ida.Future<List<dynamic>> fetchScopeSnapshot({
|
||||
_ida.Future<List<dynamic>> fetchSpaceSnapshot({
|
||||
required bool includeHidden,
|
||||
}) => caller.callServerEndpoint<List<dynamic>>(
|
||||
'demoDebug',
|
||||
'fetchScopeSnapshot',
|
||||
'fetchSpaceSnapshot',
|
||||
{'includeHidden': includeHidden},
|
||||
);
|
||||
|
||||
/// Clears the caller's scope by deleting its `crdt_scopes` row. Every synced
|
||||
/// table cascades on `scopeId` → `crdt_scopes`, so all domain rows and CRDT
|
||||
/// Clears the caller's space by deleting its `offline_sync_spaces` row. Every synced
|
||||
/// table cascades on `spaceId` → `offline_sync_spaces`, so all domain rows and CRDT
|
||||
/// metadata are removed with it — no manual per-table cleanup needed.
|
||||
///
|
||||
/// The delete runs with `defer_foreign_keys` on: the scopeId cascade fans out
|
||||
/// The delete runs with `defer_foreign_keys` on: the spaceId cascade fans out
|
||||
/// across the CRDT metadata diamond (`crdt_data_rows`/`crdt_data_fields`/
|
||||
/// `crdt_data_tombstone` reference `crdt_nodes` with NO ACTION while both sides
|
||||
/// cascade off `crdt_scopes`), and SQLite's cascade order can transiently
|
||||
/// cascade off `offline_sync_spaces`), and SQLite's cascade order can transiently
|
||||
/// violate those immediate checks. Deferring them to commit lets the whole
|
||||
/// cascade complete first.
|
||||
_ida.Future<void> resetScope() => caller.callServerEndpoint<void>(
|
||||
_ida.Future<void> resetSpace() => caller.callServerEndpoint<void>(
|
||||
'demoDebug',
|
||||
'resetScope',
|
||||
'resetSpace',
|
||||
{},
|
||||
);
|
||||
|
||||
/// Inserts demo rows of [kind] directly into the caller's scope on the server,
|
||||
/// Inserts demo rows of [kind] directly into the caller's space on the server,
|
||||
/// without going through a replica. Lets the "Server" seed target exercise the
|
||||
/// fetch-from-scratch flow: seed here, reset a replica, then sync to pull it
|
||||
/// down. [text] carries an optional name/value for the single-row kinds.
|
||||
_ida.Future<void> seedScope(
|
||||
_ida.Future<void> seedSpace(
|
||||
String kind,
|
||||
String? text,
|
||||
) => caller.callServerEndpoint<void>(
|
||||
'demoDebug',
|
||||
'seedScope',
|
||||
'seedSpace',
|
||||
{
|
||||
'kind': kind,
|
||||
'text': text,
|
||||
|
|
@ -194,13 +194,13 @@ class Client extends _isc.ServerpodClientShared {
|
|||
///
|
||||
/// The [persistentUserId] is the user all local operations belong to. When
|
||||
/// omitted, the user must be passed through the transaction.
|
||||
_ida.Future<_ipulbpi2.CrdtDatabaseSession> createSyncSession(
|
||||
_ida.Future<_ipulbpi2.OfflineSyncDatabaseSession> createSyncSession(
|
||||
String path, {
|
||||
bool runMigrations = true,
|
||||
bool isDebugMode = false,
|
||||
_isc.UuidValue? persistentUserId,
|
||||
}) async {
|
||||
final session = _ipulbpi2.CrdtDatabaseSession.wraps(
|
||||
final session = _ipulbpi2.OfflineSyncDatabaseSession.wraps(
|
||||
await createSession(
|
||||
path,
|
||||
runMigrations: runMigrations,
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class Company
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
Company._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.town,
|
||||
_isc.UuidValue? townId,
|
||||
|
|
@ -31,7 +31,7 @@ abstract class Company
|
|||
|
||||
factory Company({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_iytblq2r.Town? town,
|
||||
_isc.UuidValue? townId,
|
||||
|
|
@ -42,7 +42,7 @@ abstract class Company
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
town: jsonSerialization['town'] == null
|
||||
? null
|
||||
|
|
@ -62,8 +62,8 @@ abstract class Company
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ abstract class Company
|
|||
@_isc.useResult
|
||||
Company copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_iytblq2r.Town? town,
|
||||
_isc.UuidValue? townId,
|
||||
|
|
@ -89,7 +89,7 @@ abstract class Company
|
|||
return {
|
||||
'__className__': 'Company',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (town != null) 'town': town?.toJson(),
|
||||
'townId': townId.toJson(),
|
||||
|
|
@ -101,7 +101,7 @@ abstract class Company
|
|||
return {
|
||||
'__className__': 'Company',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (town != null) 'town': town?.toJsonForProtocol(),
|
||||
'townId': townId.toJson(),
|
||||
|
|
@ -141,13 +141,13 @@ class _Undefined {}
|
|||
class _CompanyImpl extends Company {
|
||||
_CompanyImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_iytblq2r.Town? town,
|
||||
_isc.UuidValue? townId,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
town: town,
|
||||
townId: townId,
|
||||
|
|
@ -159,14 +159,14 @@ class _CompanyImpl extends Company {
|
|||
@override
|
||||
Company copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? town = _Undefined,
|
||||
_isc.UuidValue? townId,
|
||||
}) {
|
||||
return Company(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
town: town is _iytblq2r.Town? ? town : this.town?.copyWith(),
|
||||
townId: townId ?? this.townId,
|
||||
|
|
@ -177,8 +177,8 @@ class _CompanyImpl extends Company {
|
|||
class CompanyUpdateTable extends _isd.UpdateTable<CompanyTable> {
|
||||
CompanyUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -198,8 +198,8 @@ class CompanyUpdateTable extends _isd.UpdateTable<CompanyTable> {
|
|||
class CompanyTable extends _isd.Table<_isc.UuidValue?> {
|
||||
CompanyTable({super.tableRelation}) : super(tableName: 'company') {
|
||||
updateTable = CompanyUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -215,8 +215,8 @@ class CompanyTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final CompanyUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -240,7 +240,7 @@ class CompanyTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
townId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class FkChainCascadeMiddle
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
FkChainCascadeMiddle._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.rootId,
|
||||
this.root,
|
||||
|
|
@ -29,7 +29,7 @@ abstract class FkChainCascadeMiddle
|
|||
|
||||
factory FkChainCascadeMiddle({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? rootId,
|
||||
_iv6n0jeb.FkChainRoot? root,
|
||||
|
|
@ -42,7 +42,7 @@ abstract class FkChainCascadeMiddle
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
rootId: jsonSerialization['rootId'] == null
|
||||
? null
|
||||
|
|
@ -62,8 +62,8 @@ abstract class FkChainCascadeMiddle
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ abstract class FkChainCascadeMiddle
|
|||
@_isc.useResult
|
||||
FkChainCascadeMiddle copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_isc.UuidValue? rootId,
|
||||
_iv6n0jeb.FkChainRoot? root,
|
||||
|
|
@ -89,7 +89,7 @@ abstract class FkChainCascadeMiddle
|
|||
return {
|
||||
'__className__': 'FkChainCascadeMiddle',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (rootId != null) 'rootId': rootId?.toJson(),
|
||||
if (root != null) 'root': root?.toJson(),
|
||||
|
|
@ -101,7 +101,7 @@ abstract class FkChainCascadeMiddle
|
|||
return {
|
||||
'__className__': 'FkChainCascadeMiddle',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (rootId != null) 'rootId': rootId?.toJson(),
|
||||
if (root != null) 'root': root?.toJsonForProtocol(),
|
||||
|
|
@ -143,13 +143,13 @@ class _Undefined {}
|
|||
class _FkChainCascadeMiddleImpl extends FkChainCascadeMiddle {
|
||||
_FkChainCascadeMiddleImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? rootId,
|
||||
_iv6n0jeb.FkChainRoot? root,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
rootId: rootId,
|
||||
root: root,
|
||||
|
|
@ -161,14 +161,14 @@ class _FkChainCascadeMiddleImpl extends FkChainCascadeMiddle {
|
|||
@override
|
||||
FkChainCascadeMiddle copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? rootId = _Undefined,
|
||||
Object? root = _Undefined,
|
||||
}) {
|
||||
return FkChainCascadeMiddle(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
rootId: rootId is _isc.UuidValue? ? rootId : this.rootId,
|
||||
root: root is _iv6n0jeb.FkChainRoot? ? root : this.root?.copyWith(),
|
||||
|
|
@ -180,8 +180,8 @@ class FkChainCascadeMiddleUpdateTable
|
|||
extends _isd.UpdateTable<FkChainCascadeMiddleTable> {
|
||||
FkChainCascadeMiddleUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -202,8 +202,8 @@ class FkChainCascadeMiddleTable extends _isd.Table<_isc.UuidValue?> {
|
|||
FkChainCascadeMiddleTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_cascade_middle') {
|
||||
updateTable = FkChainCascadeMiddleUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -218,8 +218,8 @@ class FkChainCascadeMiddleTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final FkChainCascadeMiddleUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -243,7 +243,7 @@ class FkChainCascadeMiddleTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
rootId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class FkChainMiddleCascadeChild
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
FkChainMiddleCascadeChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.restrictBlockerId,
|
||||
this.restrictBlocker,
|
||||
|
|
@ -29,7 +29,7 @@ abstract class FkChainMiddleCascadeChild
|
|||
|
||||
factory FkChainMiddleCascadeChild({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
|
|
@ -42,7 +42,7 @@ abstract class FkChainMiddleCascadeChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
restrictBlockerId: jsonSerialization['restrictBlockerId'] == null
|
||||
? null
|
||||
|
|
@ -64,8 +64,8 @@ abstract class FkChainMiddleCascadeChild
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ abstract class FkChainMiddleCascadeChild
|
|||
@_isc.useResult
|
||||
FkChainMiddleCascadeChild copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_isc.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
|
|
@ -91,7 +91,7 @@ abstract class FkChainMiddleCascadeChild
|
|||
return {
|
||||
'__className__': 'FkChainMiddleCascadeChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (restrictBlockerId != null)
|
||||
'restrictBlockerId': restrictBlockerId?.toJson(),
|
||||
|
|
@ -104,7 +104,7 @@ abstract class FkChainMiddleCascadeChild
|
|||
return {
|
||||
'__className__': 'FkChainMiddleCascadeChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (restrictBlockerId != null)
|
||||
'restrictBlockerId': restrictBlockerId?.toJson(),
|
||||
|
|
@ -148,13 +148,13 @@ class _Undefined {}
|
|||
class _FkChainMiddleCascadeChildImpl extends FkChainMiddleCascadeChild {
|
||||
_FkChainMiddleCascadeChildImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
restrictBlockerId: restrictBlockerId,
|
||||
restrictBlocker: restrictBlocker,
|
||||
|
|
@ -166,14 +166,14 @@ class _FkChainMiddleCascadeChildImpl extends FkChainMiddleCascadeChild {
|
|||
@override
|
||||
FkChainMiddleCascadeChild copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? restrictBlockerId = _Undefined,
|
||||
Object? restrictBlocker = _Undefined,
|
||||
}) {
|
||||
return FkChainMiddleCascadeChild(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
restrictBlockerId: restrictBlockerId is _isc.UuidValue?
|
||||
? restrictBlockerId
|
||||
|
|
@ -189,8 +189,8 @@ class FkChainMiddleCascadeChildUpdateTable
|
|||
extends _isd.UpdateTable<FkChainMiddleCascadeChildTable> {
|
||||
FkChainMiddleCascadeChildUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -211,8 +211,8 @@ class FkChainMiddleCascadeChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
FkChainMiddleCascadeChildTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_middle_cascade_child') {
|
||||
updateTable = FkChainMiddleCascadeChildUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -227,8 +227,8 @@ class FkChainMiddleCascadeChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final FkChainMiddleCascadeChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -254,7 +254,7 @@ class FkChainMiddleCascadeChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
restrictBlockerId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class FkChainMiddleSetNullChild
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
FkChainMiddleSetNullChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.restrictBlockerId,
|
||||
this.restrictBlocker,
|
||||
|
|
@ -29,7 +29,7 @@ abstract class FkChainMiddleSetNullChild
|
|||
|
||||
factory FkChainMiddleSetNullChild({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
|
|
@ -42,7 +42,7 @@ abstract class FkChainMiddleSetNullChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
restrictBlockerId: jsonSerialization['restrictBlockerId'] == null
|
||||
? null
|
||||
|
|
@ -64,8 +64,8 @@ abstract class FkChainMiddleSetNullChild
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ abstract class FkChainMiddleSetNullChild
|
|||
@_isc.useResult
|
||||
FkChainMiddleSetNullChild copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_isc.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
|
|
@ -91,7 +91,7 @@ abstract class FkChainMiddleSetNullChild
|
|||
return {
|
||||
'__className__': 'FkChainMiddleSetNullChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (restrictBlockerId != null)
|
||||
'restrictBlockerId': restrictBlockerId?.toJson(),
|
||||
|
|
@ -104,7 +104,7 @@ abstract class FkChainMiddleSetNullChild
|
|||
return {
|
||||
'__className__': 'FkChainMiddleSetNullChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (restrictBlockerId != null)
|
||||
'restrictBlockerId': restrictBlockerId?.toJson(),
|
||||
|
|
@ -148,13 +148,13 @@ class _Undefined {}
|
|||
class _FkChainMiddleSetNullChildImpl extends FkChainMiddleSetNullChild {
|
||||
_FkChainMiddleSetNullChildImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
restrictBlockerId: restrictBlockerId,
|
||||
restrictBlocker: restrictBlocker,
|
||||
|
|
@ -166,14 +166,14 @@ class _FkChainMiddleSetNullChildImpl extends FkChainMiddleSetNullChild {
|
|||
@override
|
||||
FkChainMiddleSetNullChild copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? restrictBlockerId = _Undefined,
|
||||
Object? restrictBlocker = _Undefined,
|
||||
}) {
|
||||
return FkChainMiddleSetNullChild(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
restrictBlockerId: restrictBlockerId is _isc.UuidValue?
|
||||
? restrictBlockerId
|
||||
|
|
@ -189,8 +189,8 @@ class FkChainMiddleSetNullChildUpdateTable
|
|||
extends _isd.UpdateTable<FkChainMiddleSetNullChildTable> {
|
||||
FkChainMiddleSetNullChildUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -211,8 +211,8 @@ class FkChainMiddleSetNullChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
FkChainMiddleSetNullChildTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_middle_set_null_child') {
|
||||
updateTable = FkChainMiddleSetNullChildUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -227,8 +227,8 @@ class FkChainMiddleSetNullChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final FkChainMiddleSetNullChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -254,7 +254,7 @@ class FkChainMiddleSetNullChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
restrictBlockerId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class FkChainRestrictBlocker
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
FkChainRestrictBlocker._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.cascadeMiddleId,
|
||||
this.cascadeMiddle,
|
||||
|
|
@ -29,7 +29,7 @@ abstract class FkChainRestrictBlocker
|
|||
|
||||
factory FkChainRestrictBlocker({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
|
|
@ -42,7 +42,7 @@ abstract class FkChainRestrictBlocker
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
cascadeMiddleId: jsonSerialization['cascadeMiddleId'] == null
|
||||
? null
|
||||
|
|
@ -64,8 +64,8 @@ abstract class FkChainRestrictBlocker
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ abstract class FkChainRestrictBlocker
|
|||
@_isc.useResult
|
||||
FkChainRestrictBlocker copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_isc.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
|
|
@ -91,7 +91,7 @@ abstract class FkChainRestrictBlocker
|
|||
return {
|
||||
'__className__': 'FkChainRestrictBlocker',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (cascadeMiddleId != null) 'cascadeMiddleId': cascadeMiddleId?.toJson(),
|
||||
if (cascadeMiddle != null) 'cascadeMiddle': cascadeMiddle?.toJson(),
|
||||
|
|
@ -103,7 +103,7 @@ abstract class FkChainRestrictBlocker
|
|||
return {
|
||||
'__className__': 'FkChainRestrictBlocker',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (cascadeMiddleId != null) 'cascadeMiddleId': cascadeMiddleId?.toJson(),
|
||||
if (cascadeMiddle != null)
|
||||
|
|
@ -146,13 +146,13 @@ class _Undefined {}
|
|||
class _FkChainRestrictBlockerImpl extends FkChainRestrictBlocker {
|
||||
_FkChainRestrictBlockerImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
cascadeMiddleId: cascadeMiddleId,
|
||||
cascadeMiddle: cascadeMiddle,
|
||||
|
|
@ -164,14 +164,14 @@ class _FkChainRestrictBlockerImpl extends FkChainRestrictBlocker {
|
|||
@override
|
||||
FkChainRestrictBlocker copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? cascadeMiddleId = _Undefined,
|
||||
Object? cascadeMiddle = _Undefined,
|
||||
}) {
|
||||
return FkChainRestrictBlocker(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
cascadeMiddleId: cascadeMiddleId is _isc.UuidValue?
|
||||
? cascadeMiddleId
|
||||
|
|
@ -187,8 +187,8 @@ class FkChainRestrictBlockerUpdateTable
|
|||
extends _isd.UpdateTable<FkChainRestrictBlockerTable> {
|
||||
FkChainRestrictBlockerUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -209,8 +209,8 @@ class FkChainRestrictBlockerTable extends _isd.Table<_isc.UuidValue?> {
|
|||
FkChainRestrictBlockerTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_restrict_blocker') {
|
||||
updateTable = FkChainRestrictBlockerUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -225,8 +225,8 @@ class FkChainRestrictBlockerTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final FkChainRestrictBlockerUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -252,7 +252,7 @@ class FkChainRestrictBlockerTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
cascadeMiddleId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -17,13 +17,13 @@ abstract class FkChainRoot
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
FkChainRoot._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
});
|
||||
|
||||
factory FkChainRoot({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
}) = _FkChainRootImpl;
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ abstract class FkChainRoot
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
);
|
||||
}
|
||||
|
|
@ -44,8 +44,8 @@ abstract class FkChainRoot
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -57,7 +57,7 @@ abstract class FkChainRoot
|
|||
@_isc.useResult
|
||||
FkChainRoot copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
});
|
||||
@override
|
||||
|
|
@ -65,7 +65,7 @@ abstract class FkChainRoot
|
|||
return {
|
||||
'__className__': 'FkChainRoot',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
};
|
||||
}
|
||||
|
|
@ -75,7 +75,7 @@ abstract class FkChainRoot
|
|||
return {
|
||||
'__className__': 'FkChainRoot',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
};
|
||||
}
|
||||
|
|
@ -113,11 +113,11 @@ class _Undefined {}
|
|||
class _FkChainRootImpl extends FkChainRoot {
|
||||
_FkChainRootImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
);
|
||||
|
||||
|
|
@ -127,12 +127,12 @@ class _FkChainRootImpl extends FkChainRoot {
|
|||
@override
|
||||
FkChainRoot copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
}) {
|
||||
return FkChainRoot(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
);
|
||||
}
|
||||
|
|
@ -141,8 +141,8 @@ class _FkChainRootImpl extends FkChainRoot {
|
|||
class FkChainRootUpdateTable extends _isd.UpdateTable<FkChainRootTable> {
|
||||
FkChainRootUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -155,8 +155,8 @@ class FkChainRootUpdateTable extends _isd.UpdateTable<FkChainRootTable> {
|
|||
class FkChainRootTable extends _isd.Table<_isc.UuidValue?> {
|
||||
FkChainRootTable({super.tableRelation}) : super(tableName: 'fk_chain_root') {
|
||||
updateTable = FkChainRootUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -167,15 +167,15 @@ class FkChainRootTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final FkChainRootUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class FkChainSetNullCascadeChild
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
FkChainSetNullCascadeChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.setNullMiddleId,
|
||||
this.setNullMiddle,
|
||||
|
|
@ -29,7 +29,7 @@ abstract class FkChainSetNullCascadeChild
|
|||
|
||||
factory FkChainSetNullCascadeChild({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -42,7 +42,7 @@ abstract class FkChainSetNullCascadeChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
setNullMiddleId: jsonSerialization['setNullMiddleId'] == null
|
||||
? null
|
||||
|
|
@ -64,8 +64,8 @@ abstract class FkChainSetNullCascadeChild
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ abstract class FkChainSetNullCascadeChild
|
|||
@_isc.useResult
|
||||
FkChainSetNullCascadeChild copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_isc.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -91,7 +91,7 @@ abstract class FkChainSetNullCascadeChild
|
|||
return {
|
||||
'__className__': 'FkChainSetNullCascadeChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (setNullMiddleId != null) 'setNullMiddleId': setNullMiddleId?.toJson(),
|
||||
if (setNullMiddle != null) 'setNullMiddle': setNullMiddle?.toJson(),
|
||||
|
|
@ -103,7 +103,7 @@ abstract class FkChainSetNullCascadeChild
|
|||
return {
|
||||
'__className__': 'FkChainSetNullCascadeChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (setNullMiddleId != null) 'setNullMiddleId': setNullMiddleId?.toJson(),
|
||||
if (setNullMiddle != null)
|
||||
|
|
@ -146,13 +146,13 @@ class _Undefined {}
|
|||
class _FkChainSetNullCascadeChildImpl extends FkChainSetNullCascadeChild {
|
||||
_FkChainSetNullCascadeChildImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
setNullMiddleId: setNullMiddleId,
|
||||
setNullMiddle: setNullMiddle,
|
||||
|
|
@ -164,14 +164,14 @@ class _FkChainSetNullCascadeChildImpl extends FkChainSetNullCascadeChild {
|
|||
@override
|
||||
FkChainSetNullCascadeChild copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? setNullMiddleId = _Undefined,
|
||||
Object? setNullMiddle = _Undefined,
|
||||
}) {
|
||||
return FkChainSetNullCascadeChild(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
setNullMiddleId: setNullMiddleId is _isc.UuidValue?
|
||||
? setNullMiddleId
|
||||
|
|
@ -187,8 +187,8 @@ class FkChainSetNullCascadeChildUpdateTable
|
|||
extends _isd.UpdateTable<FkChainSetNullCascadeChildTable> {
|
||||
FkChainSetNullCascadeChildUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -209,8 +209,8 @@ class FkChainSetNullCascadeChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
FkChainSetNullCascadeChildTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_set_null_cascade_child') {
|
||||
updateTable = FkChainSetNullCascadeChildUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -225,8 +225,8 @@ class FkChainSetNullCascadeChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final FkChainSetNullCascadeChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -252,7 +252,7 @@ class FkChainSetNullCascadeChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
setNullMiddleId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class FkChainSetNullMiddle
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
FkChainSetNullMiddle._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.cascadeMiddleId,
|
||||
this.cascadeMiddle,
|
||||
|
|
@ -29,7 +29,7 @@ abstract class FkChainSetNullMiddle
|
|||
|
||||
factory FkChainSetNullMiddle({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
|
|
@ -42,7 +42,7 @@ abstract class FkChainSetNullMiddle
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
cascadeMiddleId: jsonSerialization['cascadeMiddleId'] == null
|
||||
? null
|
||||
|
|
@ -64,8 +64,8 @@ abstract class FkChainSetNullMiddle
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ abstract class FkChainSetNullMiddle
|
|||
@_isc.useResult
|
||||
FkChainSetNullMiddle copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_isc.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
|
|
@ -91,7 +91,7 @@ abstract class FkChainSetNullMiddle
|
|||
return {
|
||||
'__className__': 'FkChainSetNullMiddle',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (cascadeMiddleId != null) 'cascadeMiddleId': cascadeMiddleId?.toJson(),
|
||||
if (cascadeMiddle != null) 'cascadeMiddle': cascadeMiddle?.toJson(),
|
||||
|
|
@ -103,7 +103,7 @@ abstract class FkChainSetNullMiddle
|
|||
return {
|
||||
'__className__': 'FkChainSetNullMiddle',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (cascadeMiddleId != null) 'cascadeMiddleId': cascadeMiddleId?.toJson(),
|
||||
if (cascadeMiddle != null)
|
||||
|
|
@ -146,13 +146,13 @@ class _Undefined {}
|
|||
class _FkChainSetNullMiddleImpl extends FkChainSetNullMiddle {
|
||||
_FkChainSetNullMiddleImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
cascadeMiddleId: cascadeMiddleId,
|
||||
cascadeMiddle: cascadeMiddle,
|
||||
|
|
@ -164,14 +164,14 @@ class _FkChainSetNullMiddleImpl extends FkChainSetNullMiddle {
|
|||
@override
|
||||
FkChainSetNullMiddle copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? cascadeMiddleId = _Undefined,
|
||||
Object? cascadeMiddle = _Undefined,
|
||||
}) {
|
||||
return FkChainSetNullMiddle(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
cascadeMiddleId: cascadeMiddleId is _isc.UuidValue?
|
||||
? cascadeMiddleId
|
||||
|
|
@ -187,8 +187,8 @@ class FkChainSetNullMiddleUpdateTable
|
|||
extends _isd.UpdateTable<FkChainSetNullMiddleTable> {
|
||||
FkChainSetNullMiddleUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -209,8 +209,8 @@ class FkChainSetNullMiddleTable extends _isd.Table<_isc.UuidValue?> {
|
|||
FkChainSetNullMiddleTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_set_null_middle') {
|
||||
updateTable = FkChainSetNullMiddleUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -225,8 +225,8 @@ class FkChainSetNullMiddleTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final FkChainSetNullMiddleUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -252,7 +252,7 @@ class FkChainSetNullMiddleTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
cascadeMiddleId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class FkChainSetNullRestrictChild
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
FkChainSetNullRestrictChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.setNullMiddleId,
|
||||
this.setNullMiddle,
|
||||
|
|
@ -29,7 +29,7 @@ abstract class FkChainSetNullRestrictChild
|
|||
|
||||
factory FkChainSetNullRestrictChild({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -42,7 +42,7 @@ abstract class FkChainSetNullRestrictChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
setNullMiddleId: jsonSerialization['setNullMiddleId'] == null
|
||||
? null
|
||||
|
|
@ -64,8 +64,8 @@ abstract class FkChainSetNullRestrictChild
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ abstract class FkChainSetNullRestrictChild
|
|||
@_isc.useResult
|
||||
FkChainSetNullRestrictChild copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_isc.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -91,7 +91,7 @@ abstract class FkChainSetNullRestrictChild
|
|||
return {
|
||||
'__className__': 'FkChainSetNullRestrictChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (setNullMiddleId != null) 'setNullMiddleId': setNullMiddleId?.toJson(),
|
||||
if (setNullMiddle != null) 'setNullMiddle': setNullMiddle?.toJson(),
|
||||
|
|
@ -103,7 +103,7 @@ abstract class FkChainSetNullRestrictChild
|
|||
return {
|
||||
'__className__': 'FkChainSetNullRestrictChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (setNullMiddleId != null) 'setNullMiddleId': setNullMiddleId?.toJson(),
|
||||
if (setNullMiddle != null)
|
||||
|
|
@ -146,13 +146,13 @@ class _Undefined {}
|
|||
class _FkChainSetNullRestrictChildImpl extends FkChainSetNullRestrictChild {
|
||||
_FkChainSetNullRestrictChildImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
setNullMiddleId: setNullMiddleId,
|
||||
setNullMiddle: setNullMiddle,
|
||||
|
|
@ -164,14 +164,14 @@ class _FkChainSetNullRestrictChildImpl extends FkChainSetNullRestrictChild {
|
|||
@override
|
||||
FkChainSetNullRestrictChild copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? setNullMiddleId = _Undefined,
|
||||
Object? setNullMiddle = _Undefined,
|
||||
}) {
|
||||
return FkChainSetNullRestrictChild(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
setNullMiddleId: setNullMiddleId is _isc.UuidValue?
|
||||
? setNullMiddleId
|
||||
|
|
@ -187,8 +187,8 @@ class FkChainSetNullRestrictChildUpdateTable
|
|||
extends _isd.UpdateTable<FkChainSetNullRestrictChildTable> {
|
||||
FkChainSetNullRestrictChildUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -209,8 +209,8 @@ class FkChainSetNullRestrictChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
FkChainSetNullRestrictChildTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_set_null_restrict_child') {
|
||||
updateTable = FkChainSetNullRestrictChildUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -225,8 +225,8 @@ class FkChainSetNullRestrictChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final FkChainSetNullRestrictChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -252,7 +252,7 @@ class FkChainSetNullRestrictChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
setNullMiddleId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class FkChainSetNullSetNullChild
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
FkChainSetNullSetNullChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.setNullMiddleId,
|
||||
this.setNullMiddle,
|
||||
|
|
@ -29,7 +29,7 @@ abstract class FkChainSetNullSetNullChild
|
|||
|
||||
factory FkChainSetNullSetNullChild({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -42,7 +42,7 @@ abstract class FkChainSetNullSetNullChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
setNullMiddleId: jsonSerialization['setNullMiddleId'] == null
|
||||
? null
|
||||
|
|
@ -64,8 +64,8 @@ abstract class FkChainSetNullSetNullChild
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ abstract class FkChainSetNullSetNullChild
|
|||
@_isc.useResult
|
||||
FkChainSetNullSetNullChild copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_isc.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -91,7 +91,7 @@ abstract class FkChainSetNullSetNullChild
|
|||
return {
|
||||
'__className__': 'FkChainSetNullSetNullChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (setNullMiddleId != null) 'setNullMiddleId': setNullMiddleId?.toJson(),
|
||||
if (setNullMiddle != null) 'setNullMiddle': setNullMiddle?.toJson(),
|
||||
|
|
@ -103,7 +103,7 @@ abstract class FkChainSetNullSetNullChild
|
|||
return {
|
||||
'__className__': 'FkChainSetNullSetNullChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (setNullMiddleId != null) 'setNullMiddleId': setNullMiddleId?.toJson(),
|
||||
if (setNullMiddle != null)
|
||||
|
|
@ -146,13 +146,13 @@ class _Undefined {}
|
|||
class _FkChainSetNullSetNullChildImpl extends FkChainSetNullSetNullChild {
|
||||
_FkChainSetNullSetNullChildImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
setNullMiddleId: setNullMiddleId,
|
||||
setNullMiddle: setNullMiddle,
|
||||
|
|
@ -164,14 +164,14 @@ class _FkChainSetNullSetNullChildImpl extends FkChainSetNullSetNullChild {
|
|||
@override
|
||||
FkChainSetNullSetNullChild copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? setNullMiddleId = _Undefined,
|
||||
Object? setNullMiddle = _Undefined,
|
||||
}) {
|
||||
return FkChainSetNullSetNullChild(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
setNullMiddleId: setNullMiddleId is _isc.UuidValue?
|
||||
? setNullMiddleId
|
||||
|
|
@ -187,8 +187,8 @@ class FkChainSetNullSetNullChildUpdateTable
|
|||
extends _isd.UpdateTable<FkChainSetNullSetNullChildTable> {
|
||||
FkChainSetNullSetNullChildUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -209,8 +209,8 @@ class FkChainSetNullSetNullChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
FkChainSetNullSetNullChildTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_set_null_set_null_child') {
|
||||
updateTable = FkChainSetNullSetNullChildUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -225,8 +225,8 @@ class FkChainSetNullSetNullChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final FkChainSetNullSetNullChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -252,7 +252,7 @@ class FkChainSetNullSetNullChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
setNullMiddleId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class NullableSetDefaultChild
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
NullableSetDefaultChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.parentId,
|
||||
this.parent,
|
||||
|
|
@ -29,7 +29,7 @@ abstract class NullableSetDefaultChild
|
|||
|
||||
factory NullableSetDefaultChild({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? parentId,
|
||||
_iensfz4m.Person? parent,
|
||||
|
|
@ -42,7 +42,7 @@ abstract class NullableSetDefaultChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
parentId: jsonSerialization['parentId'] == null
|
||||
? null
|
||||
|
|
@ -62,8 +62,8 @@ abstract class NullableSetDefaultChild
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ abstract class NullableSetDefaultChild
|
|||
@_isc.useResult
|
||||
NullableSetDefaultChild copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_isc.UuidValue? parentId,
|
||||
_iensfz4m.Person? parent,
|
||||
|
|
@ -89,7 +89,7 @@ abstract class NullableSetDefaultChild
|
|||
return {
|
||||
'__className__': 'NullableSetDefaultChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (parentId != null) 'parentId': parentId?.toJson(),
|
||||
if (parent != null) 'parent': parent?.toJson(),
|
||||
|
|
@ -101,7 +101,7 @@ abstract class NullableSetDefaultChild
|
|||
return {
|
||||
'__className__': 'NullableSetDefaultChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (parentId != null) 'parentId': parentId?.toJson(),
|
||||
if (parent != null) 'parent': parent?.toJsonForProtocol(),
|
||||
|
|
@ -143,13 +143,13 @@ class _Undefined {}
|
|||
class _NullableSetDefaultChildImpl extends NullableSetDefaultChild {
|
||||
_NullableSetDefaultChildImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_isc.UuidValue? parentId,
|
||||
_iensfz4m.Person? parent,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
parentId: parentId,
|
||||
parent: parent,
|
||||
|
|
@ -161,14 +161,14 @@ class _NullableSetDefaultChildImpl extends NullableSetDefaultChild {
|
|||
@override
|
||||
NullableSetDefaultChild copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? parentId = _Undefined,
|
||||
Object? parent = _Undefined,
|
||||
}) {
|
||||
return NullableSetDefaultChild(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
parentId: parentId is _isc.UuidValue? ? parentId : this.parentId,
|
||||
parent: parent is _iensfz4m.Person? ? parent : this.parent?.copyWith(),
|
||||
|
|
@ -180,8 +180,8 @@ class NullableSetDefaultChildUpdateTable
|
|||
extends _isd.UpdateTable<NullableSetDefaultChildTable> {
|
||||
NullableSetDefaultChildUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -202,8 +202,8 @@ class NullableSetDefaultChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
NullableSetDefaultChildTable({super.tableRelation})
|
||||
: super(tableName: 'nullable_set_default_child') {
|
||||
updateTable = NullableSetDefaultChildUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -218,8 +218,8 @@ class NullableSetDefaultChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final NullableSetDefaultChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -243,7 +243,7 @@ class NullableSetDefaultChildTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
parentId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ abstract class Organization
|
|||
implements _isd.TableRow<_isc.UuidValue?>, _isc.ProtocolSerialization {
|
||||
Organization._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.people,
|
||||
this.cityId,
|
||||
|
|
@ -31,7 +31,7 @@ abstract class Organization
|
|||
|
||||
factory Organization({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
List<_iensfz4m.Person>? people,
|
||||
_isc.UuidValue? cityId,
|
||||
|
|
@ -43,7 +43,7 @@ abstract class Organization
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _isc.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
people: jsonSerialization['people'] == null
|
||||
? null
|
||||
|
|
@ -68,8 +68,8 @@ abstract class Organization
|
|||
@override
|
||||
_isc.UuidValue? id;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
int? scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
int? spaceId;
|
||||
|
||||
String name;
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ abstract class Organization
|
|||
@_isc.useResult
|
||||
Organization copyWith({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
List<_iensfz4m.Person>? people,
|
||||
_isc.UuidValue? cityId,
|
||||
|
|
@ -98,7 +98,7 @@ abstract class Organization
|
|||
return {
|
||||
'__className__': 'Organization',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (people != null)
|
||||
'people': people?.toJson(valueToJson: (v) => v.toJson()),
|
||||
|
|
@ -112,7 +112,7 @@ abstract class Organization
|
|||
return {
|
||||
'__className__': 'Organization',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (people != null)
|
||||
'people': people?.toJson(valueToJson: (v) => v.toJsonForProtocol()),
|
||||
|
|
@ -160,14 +160,14 @@ class _Undefined {}
|
|||
class _OrganizationImpl extends Organization {
|
||||
_OrganizationImpl({
|
||||
_isc.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
List<_iensfz4m.Person>? people,
|
||||
_isc.UuidValue? cityId,
|
||||
_ior3absd.City? city,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
people: people,
|
||||
cityId: cityId,
|
||||
|
|
@ -180,7 +180,7 @@ class _OrganizationImpl extends Organization {
|
|||
@override
|
||||
Organization copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? people = _Undefined,
|
||||
Object? cityId = _Undefined,
|
||||
|
|
@ -188,7 +188,7 @@ class _OrganizationImpl extends Organization {
|
|||
}) {
|
||||
return Organization(
|
||||
id: id is _isc.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
people: people is List<_iensfz4m.Person>?
|
||||
? people
|
||||
|
|
@ -202,8 +202,8 @@ class _OrganizationImpl extends Organization {
|
|||
class OrganizationUpdateTable extends _isd.UpdateTable<OrganizationTable> {
|
||||
OrganizationUpdateTable(super.table);
|
||||
|
||||
_isd.ColumnValue<int, int> scopeId(int? value) => _isd.ColumnValue(
|
||||
table.scopeId,
|
||||
_isd.ColumnValue<int, int> spaceId(int? value) => _isd.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -223,8 +223,8 @@ class OrganizationUpdateTable extends _isd.UpdateTable<OrganizationTable> {
|
|||
class OrganizationTable extends _isd.Table<_isc.UuidValue?> {
|
||||
OrganizationTable({super.tableRelation}) : super(tableName: 'organization') {
|
||||
updateTable = OrganizationUpdateTable(this);
|
||||
scopeId = _isd.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _isd.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _isd.ColumnString(
|
||||
|
|
@ -239,8 +239,8 @@ class OrganizationTable extends _isd.Table<_isc.UuidValue?> {
|
|||
|
||||
late final OrganizationUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _isd.ColumnInt spaceId;
|
||||
|
||||
late final _isd.ColumnString name;
|
||||
|
||||
|
|
@ -300,7 +300,7 @@ class OrganizationTable extends _isd.Table<_isc.UuidValue?> {
|
|||
@override
|
||||
List<_isd.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
cityId,
|
||||
];
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue