refactor!: Rename sync APIs and ownership spaces (#128)
This commit is contained in:
parent
4331daf661
commit
b89725f6ea
112 changed files with 43650 additions and 9417 deletions
|
|
@ -2,17 +2,17 @@ import 'dart:typed_data';
|
|||
|
||||
import 'package:serverpod/serverpod.dart';
|
||||
import 'package:serverpod_offline_sync_server/serverpod_offline_sync_server.dart'
|
||||
show CrdtDatabase, CrdtScope, IncludeTombstonedRows;
|
||||
show IncludeTombstonedRows, OfflineSyncDatabase, OfflineSyncSpace;
|
||||
|
||||
import '../generated/protocol.dart';
|
||||
|
||||
/// 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.
|
||||
class DemoDebugEndpoint extends Endpoint {
|
||||
@override
|
||||
bool get requireLogin => true;
|
||||
|
||||
/// 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.
|
||||
|
|
@ -22,7 +22,7 @@ class DemoDebugEndpoint extends Endpoint {
|
|||
/// 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.
|
||||
Future<List<dynamic>> fetchScopeSnapshot(
|
||||
Future<List<dynamic>> fetchSpaceSnapshot(
|
||||
Session session, {
|
||||
bool includeHidden = false,
|
||||
}) async {
|
||||
|
|
@ -31,52 +31,52 @@ class DemoDebugEndpoint extends Endpoint {
|
|||
);
|
||||
|
||||
final db = session.db;
|
||||
if (db is! CrdtDatabase) {
|
||||
return _loadRows(session, null, includeHidden: false, scopeId: null);
|
||||
if (db is! OfflineSyncDatabase) {
|
||||
return _loadRows(session, null, includeHidden: false, spaceId: null);
|
||||
}
|
||||
|
||||
// Run the reads in the caller's scope so the snapshot reflects what this
|
||||
// user sees, not an unscoped admin view across every scope.
|
||||
// Run the reads in the caller's space so the snapshot reflects what this
|
||||
// user sees, not an unscoped admin view across every space.
|
||||
return db.transactionForUser(userId, (transaction) async {
|
||||
final scope = await CrdtScope.db.findFirstRow(
|
||||
final space = await OfflineSyncSpace.db.findFirstRow(
|
||||
session,
|
||||
where: (t) => t.uuidScopeId.equals(userId),
|
||||
where: (t) => t.uuidSpaceId.equals(userId),
|
||||
transaction: transaction,
|
||||
);
|
||||
return _loadRows(
|
||||
session,
|
||||
transaction,
|
||||
includeHidden: includeHidden,
|
||||
scopeId: scope?.id,
|
||||
spaceId: space?.id,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
/// 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.
|
||||
Future<void> resetScope(Session session) async {
|
||||
Future<void> resetSpace(Session session) async {
|
||||
final userId = UuidValue.withValidation(
|
||||
session.authenticated!.userIdentifier,
|
||||
);
|
||||
|
||||
final db = session.db;
|
||||
if (db is CrdtDatabase) {
|
||||
if (db is OfflineSyncDatabase) {
|
||||
await db.initialize();
|
||||
}
|
||||
final scope = await CrdtScope.db.findFirstRow(
|
||||
final space = await OfflineSyncSpace.db.findFirstRow(
|
||||
session,
|
||||
where: (t) => t.uuidScopeId.equals(userId),
|
||||
where: (t) => t.uuidSpaceId.equals(userId),
|
||||
);
|
||||
final scopeId = scope?.id;
|
||||
if (scopeId != null) {
|
||||
final spaceId = space?.id;
|
||||
if (spaceId != null) {
|
||||
await db.transaction((transaction) async {
|
||||
// TODO: Remove this explicit call to defer foreign keys once foreign
|
||||
// keys are deferrable by default on the Serverpod package.
|
||||
|
|
@ -84,29 +84,29 @@ class DemoDebugEndpoint extends Endpoint {
|
|||
'PRAGMA defer_foreign_keys = ON',
|
||||
transaction: transaction,
|
||||
);
|
||||
await CrdtScope.db.deleteWhere(
|
||||
await OfflineSyncSpace.db.deleteWhere(
|
||||
session,
|
||||
where: (t) => t.id.equals(scopeId),
|
||||
where: (t) => t.id.equals(spaceId),
|
||||
transaction: transaction,
|
||||
);
|
||||
});
|
||||
}
|
||||
if (db is CrdtDatabase) {
|
||||
if (db is OfflineSyncDatabase) {
|
||||
await db.initialize();
|
||||
}
|
||||
}
|
||||
|
||||
/// 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.
|
||||
Future<void> seedScope(Session session, String kind, String? text) async {
|
||||
Future<void> seedSpace(Session session, String kind, String? text) async {
|
||||
final userId = UuidValue.withValidation(
|
||||
session.authenticated!.userIdentifier,
|
||||
);
|
||||
|
||||
final db = session.db;
|
||||
if (db is! CrdtDatabase) {
|
||||
if (db is! OfflineSyncDatabase) {
|
||||
throw StateError('This endpoint only works with a CRDT database.');
|
||||
}
|
||||
|
||||
|
|
@ -260,7 +260,7 @@ class DemoDebugEndpoint extends Endpoint {
|
|||
});
|
||||
}
|
||||
|
||||
/// Loads every synced domain row in the caller's scope as a flat list of
|
||||
/// Loads every synced domain row in the caller's space as a flat list of
|
||||
/// models. When [includeHidden] is true, CRDT-hidden rows are returned too
|
||||
/// via the `t.includeHiddenRows` expression.
|
||||
///
|
||||
|
|
@ -272,13 +272,13 @@ class DemoDebugEndpoint extends Endpoint {
|
|||
Session session,
|
||||
Transaction? transaction, {
|
||||
required bool includeHidden,
|
||||
required int? scopeId,
|
||||
required int? spaceId,
|
||||
}) async {
|
||||
final rows = <dynamic>[];
|
||||
Future<void> add<T extends TableRow>() async {
|
||||
rows.addAll(
|
||||
await session.db.find<T>(
|
||||
where: includeHidden ? _includeHiddenRowsInScope<T>(session, scopeId) : null,
|
||||
where: includeHidden ? _includeHiddenRowsInSpace<T>(session, spaceId) : null,
|
||||
transaction: transaction,
|
||||
),
|
||||
);
|
||||
|
|
@ -310,26 +310,26 @@ class DemoDebugEndpoint extends Endpoint {
|
|||
return rows;
|
||||
}
|
||||
|
||||
Expression _includeHiddenRowsInScope<T extends TableRow>(
|
||||
Expression _includeHiddenRowsInSpace<T extends TableRow>(
|
||||
Session session,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
) {
|
||||
if (scopeId == null) {
|
||||
throw StateError('Cannot include hidden rows without a CRDT scope.');
|
||||
if (spaceId == null) {
|
||||
throw StateError('Cannot include hidden rows without a CRDT space.');
|
||||
}
|
||||
|
||||
final table =
|
||||
session.db.serializationManager.getTableForType(T) ??
|
||||
(throw StateError('No table is registered for type $T.'));
|
||||
return _scopeIdColumn(table).equals(scopeId) & table.includeHiddenRows;
|
||||
return _spaceIdColumn(table).equals(spaceId) & table.includeHiddenRows;
|
||||
}
|
||||
|
||||
ColumnInt _scopeIdColumn(Table table) {
|
||||
ColumnInt _spaceIdColumn(Table table) {
|
||||
for (final column in table.columns) {
|
||||
if (column.columnName == 'scopeId' && column is ColumnInt) {
|
||||
if (column.columnName == 'spaceId' && column is ColumnInt) {
|
||||
return column;
|
||||
}
|
||||
}
|
||||
throw StateError('Synced table "${table.tableName}" has no scopeId column.');
|
||||
throw StateError('Synced table "${table.tableName}" has no spaceId column.');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class Address
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
Address._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.street,
|
||||
this.inhabitantId,
|
||||
this.inhabitant,
|
||||
|
|
@ -28,7 +28,7 @@ abstract class Address
|
|||
|
||||
factory Address({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String street,
|
||||
_is.UuidValue? inhabitantId,
|
||||
_iensfz4m.Person? inhabitant,
|
||||
|
|
@ -39,7 +39,7 @@ abstract class Address
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
street: jsonSerialization['street'] as String,
|
||||
inhabitantId: jsonSerialization['inhabitantId'] == null
|
||||
? null
|
||||
|
|
@ -61,8 +61,8 @@ abstract class Address
|
|||
@override
|
||||
_is.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;
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ abstract class Address
|
|||
@_is.useResult
|
||||
Address copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? street,
|
||||
_is.UuidValue? inhabitantId,
|
||||
_iensfz4m.Person? inhabitant,
|
||||
|
|
@ -88,7 +88,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(),
|
||||
|
|
@ -100,7 +100,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(),
|
||||
|
|
@ -140,13 +140,13 @@ class _Undefined {}
|
|||
class _AddressImpl extends Address {
|
||||
_AddressImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String street,
|
||||
_is.UuidValue? inhabitantId,
|
||||
_iensfz4m.Person? inhabitant,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
street: street,
|
||||
inhabitantId: inhabitantId,
|
||||
inhabitant: inhabitant,
|
||||
|
|
@ -158,14 +158,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 _is.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 _is.UuidValue?
|
||||
? inhabitantId
|
||||
|
|
@ -180,8 +180,8 @@ class _AddressImpl extends Address {
|
|||
class AddressUpdateTable extends _is.UpdateTable<AddressTable> {
|
||||
AddressUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -201,8 +201,8 @@ class AddressUpdateTable extends _is.UpdateTable<AddressTable> {
|
|||
class AddressTable extends _is.Table<_is.UuidValue?> {
|
||||
AddressTable({super.tableRelation}) : super(tableName: 'address') {
|
||||
updateTable = AddressUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
street = _is.ColumnString(
|
||||
|
|
@ -217,8 +217,8 @@ class AddressTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final AddressUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString street;
|
||||
|
||||
|
|
@ -242,7 +242,7 @@ class AddressTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
street,
|
||||
inhabitantId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class City
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
City._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.citizens,
|
||||
this.organizations,
|
||||
|
|
@ -29,7 +29,7 @@ abstract class City
|
|||
|
||||
factory City({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
List<_iensfz4m.Person>? citizens,
|
||||
List<_irjtvpke.Organization>? organizations,
|
||||
|
|
@ -40,7 +40,7 @@ abstract class City
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
citizens: jsonSerialization['citizens'] == null
|
||||
? null
|
||||
|
|
@ -62,8 +62,8 @@ abstract class City
|
|||
@override
|
||||
_is.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 City
|
|||
@_is.useResult
|
||||
City copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
List<_iensfz4m.Person>? citizens,
|
||||
List<_irjtvpke.Organization>? organizations,
|
||||
|
|
@ -89,7 +89,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()),
|
||||
|
|
@ -103,7 +103,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()),
|
||||
|
|
@ -153,13 +153,13 @@ class _Undefined {}
|
|||
class _CityImpl extends City {
|
||||
_CityImpl({
|
||||
_is.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,
|
||||
|
|
@ -171,14 +171,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 _is.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
|
||||
|
|
@ -193,8 +193,8 @@ class _CityImpl extends City {
|
|||
class CityUpdateTable extends _is.UpdateTable<CityTable> {
|
||||
CityUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -207,8 +207,8 @@ class CityUpdateTable extends _is.UpdateTable<CityTable> {
|
|||
class CityTable extends _is.Table<_is.UuidValue?> {
|
||||
CityTable({super.tableRelation}) : super(tableName: 'city') {
|
||||
updateTable = CityUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -219,8 +219,8 @@ class CityTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final CityUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -299,7 +299,7 @@ class CityTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class Company
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
Company._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.town,
|
||||
_is.UuidValue? townId,
|
||||
|
|
@ -30,7 +30,7 @@ abstract class Company
|
|||
|
||||
factory Company({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_iytblq2r.Town? town,
|
||||
_is.UuidValue? townId,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class Company
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
town: jsonSerialization['town'] == null
|
||||
? null
|
||||
|
|
@ -61,8 +61,8 @@ abstract class Company
|
|||
@override
|
||||
_is.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;
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ abstract class Company
|
|||
@_is.useResult
|
||||
Company copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_iytblq2r.Town? town,
|
||||
_is.UuidValue? townId,
|
||||
|
|
@ -88,7 +88,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(),
|
||||
|
|
@ -100,7 +100,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(),
|
||||
|
|
@ -140,13 +140,13 @@ class _Undefined {}
|
|||
class _CompanyImpl extends Company {
|
||||
_CompanyImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_iytblq2r.Town? town,
|
||||
_is.UuidValue? townId,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
town: town,
|
||||
townId: townId,
|
||||
|
|
@ -158,14 +158,14 @@ class _CompanyImpl extends Company {
|
|||
@override
|
||||
Company copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? town = _Undefined,
|
||||
_is.UuidValue? townId,
|
||||
}) {
|
||||
return Company(
|
||||
id: id is _is.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,
|
||||
|
|
@ -176,8 +176,8 @@ class _CompanyImpl extends Company {
|
|||
class CompanyUpdateTable extends _is.UpdateTable<CompanyTable> {
|
||||
CompanyUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -196,8 +196,8 @@ class CompanyUpdateTable extends _is.UpdateTable<CompanyTable> {
|
|||
class CompanyTable extends _is.Table<_is.UuidValue?> {
|
||||
CompanyTable({super.tableRelation}) : super(tableName: 'company') {
|
||||
updateTable = CompanyUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -213,8 +213,8 @@ class CompanyTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final CompanyUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -238,7 +238,7 @@ class CompanyTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
townId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -64,8 +64,8 @@ class Endpoints extends _is.EndpointDispatch {
|
|||
name: 'demoDebug',
|
||||
endpoint: endpoints['demoDebug']!,
|
||||
methodConnectors: {
|
||||
'fetchScopeSnapshot': _is.MethodConnector(
|
||||
name: 'fetchScopeSnapshot',
|
||||
'fetchSpaceSnapshot': _is.MethodConnector(
|
||||
name: 'fetchSpaceSnapshot',
|
||||
params: {
|
||||
'includeHidden': _is.ParameterDescription(
|
||||
name: 'includeHidden',
|
||||
|
|
@ -78,23 +78,23 @@ class Endpoints extends _is.EndpointDispatch {
|
|||
_is.Session session,
|
||||
Map<String, dynamic> params,
|
||||
) async => (endpoints['demoDebug'] as _ikfteyi1.DemoDebugEndpoint)
|
||||
.fetchScopeSnapshot(
|
||||
.fetchSpaceSnapshot(
|
||||
session,
|
||||
includeHidden: params['includeHidden'],
|
||||
),
|
||||
),
|
||||
'resetScope': _is.MethodConnector(
|
||||
name: 'resetScope',
|
||||
'resetSpace': _is.MethodConnector(
|
||||
name: 'resetSpace',
|
||||
params: {},
|
||||
call:
|
||||
(
|
||||
_is.Session session,
|
||||
Map<String, dynamic> params,
|
||||
) async => (endpoints['demoDebug'] as _ikfteyi1.DemoDebugEndpoint)
|
||||
.resetScope(session),
|
||||
.resetSpace(session),
|
||||
),
|
||||
'seedScope': _is.MethodConnector(
|
||||
name: 'seedScope',
|
||||
'seedSpace': _is.MethodConnector(
|
||||
name: 'seedSpace',
|
||||
params: {
|
||||
'kind': _is.ParameterDescription(
|
||||
name: 'kind',
|
||||
|
|
@ -112,7 +112,7 @@ class Endpoints extends _is.EndpointDispatch {
|
|||
_is.Session session,
|
||||
Map<String, dynamic> params,
|
||||
) async => (endpoints['demoDebug'] as _ikfteyi1.DemoDebugEndpoint)
|
||||
.seedScope(
|
||||
.seedSpace(
|
||||
session,
|
||||
params['kind'],
|
||||
params['text'],
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class FkChainCascadeMiddle
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
FkChainCascadeMiddle._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.rootId,
|
||||
this.root,
|
||||
|
|
@ -28,7 +28,7 @@ abstract class FkChainCascadeMiddle
|
|||
|
||||
factory FkChainCascadeMiddle({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? rootId,
|
||||
_iv6n0jeb.FkChainRoot? root,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class FkChainCascadeMiddle
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
rootId: jsonSerialization['rootId'] == null
|
||||
? null
|
||||
|
|
@ -61,8 +61,8 @@ abstract class FkChainCascadeMiddle
|
|||
@override
|
||||
_is.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;
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ abstract class FkChainCascadeMiddle
|
|||
@_is.useResult
|
||||
FkChainCascadeMiddle copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_is.UuidValue? rootId,
|
||||
_iv6n0jeb.FkChainRoot? root,
|
||||
|
|
@ -88,7 +88,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(),
|
||||
|
|
@ -100,7 +100,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(),
|
||||
|
|
@ -142,13 +142,13 @@ class _Undefined {}
|
|||
class _FkChainCascadeMiddleImpl extends FkChainCascadeMiddle {
|
||||
_FkChainCascadeMiddleImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? rootId,
|
||||
_iv6n0jeb.FkChainRoot? root,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
rootId: rootId,
|
||||
root: root,
|
||||
|
|
@ -160,14 +160,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 _is.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 _is.UuidValue? ? rootId : this.rootId,
|
||||
root: root is _iv6n0jeb.FkChainRoot? ? root : this.root?.copyWith(),
|
||||
|
|
@ -179,8 +179,8 @@ class FkChainCascadeMiddleUpdateTable
|
|||
extends _is.UpdateTable<FkChainCascadeMiddleTable> {
|
||||
FkChainCascadeMiddleUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -200,8 +200,8 @@ class FkChainCascadeMiddleTable extends _is.Table<_is.UuidValue?> {
|
|||
FkChainCascadeMiddleTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_cascade_middle') {
|
||||
updateTable = FkChainCascadeMiddleUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -216,8 +216,8 @@ class FkChainCascadeMiddleTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final FkChainCascadeMiddleUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -241,7 +241,7 @@ class FkChainCascadeMiddleTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
rootId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class FkChainMiddleCascadeChild
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
FkChainMiddleCascadeChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.restrictBlockerId,
|
||||
this.restrictBlocker,
|
||||
|
|
@ -28,7 +28,7 @@ abstract class FkChainMiddleCascadeChild
|
|||
|
||||
factory FkChainMiddleCascadeChild({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class FkChainMiddleCascadeChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
restrictBlockerId: jsonSerialization['restrictBlockerId'] == null
|
||||
? null
|
||||
|
|
@ -63,8 +63,8 @@ abstract class FkChainMiddleCascadeChild
|
|||
@override
|
||||
_is.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 FkChainMiddleCascadeChild
|
|||
@_is.useResult
|
||||
FkChainMiddleCascadeChild copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_is.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
|
|
@ -90,7 +90,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(),
|
||||
|
|
@ -103,7 +103,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(),
|
||||
|
|
@ -147,13 +147,13 @@ class _Undefined {}
|
|||
class _FkChainMiddleCascadeChildImpl extends FkChainMiddleCascadeChild {
|
||||
_FkChainMiddleCascadeChildImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
restrictBlockerId: restrictBlockerId,
|
||||
restrictBlocker: restrictBlocker,
|
||||
|
|
@ -165,14 +165,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 _is.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 _is.UuidValue?
|
||||
? restrictBlockerId
|
||||
|
|
@ -188,8 +188,8 @@ class FkChainMiddleCascadeChildUpdateTable
|
|||
extends _is.UpdateTable<FkChainMiddleCascadeChildTable> {
|
||||
FkChainMiddleCascadeChildUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -210,8 +210,8 @@ class FkChainMiddleCascadeChildTable extends _is.Table<_is.UuidValue?> {
|
|||
FkChainMiddleCascadeChildTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_middle_cascade_child') {
|
||||
updateTable = FkChainMiddleCascadeChildUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -226,8 +226,8 @@ class FkChainMiddleCascadeChildTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final FkChainMiddleCascadeChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -253,7 +253,7 @@ class FkChainMiddleCascadeChildTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
restrictBlockerId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class FkChainMiddleSetNullChild
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
FkChainMiddleSetNullChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.restrictBlockerId,
|
||||
this.restrictBlocker,
|
||||
|
|
@ -28,7 +28,7 @@ abstract class FkChainMiddleSetNullChild
|
|||
|
||||
factory FkChainMiddleSetNullChild({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class FkChainMiddleSetNullChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
restrictBlockerId: jsonSerialization['restrictBlockerId'] == null
|
||||
? null
|
||||
|
|
@ -63,8 +63,8 @@ abstract class FkChainMiddleSetNullChild
|
|||
@override
|
||||
_is.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 FkChainMiddleSetNullChild
|
|||
@_is.useResult
|
||||
FkChainMiddleSetNullChild copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_is.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
|
|
@ -90,7 +90,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(),
|
||||
|
|
@ -103,7 +103,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(),
|
||||
|
|
@ -147,13 +147,13 @@ class _Undefined {}
|
|||
class _FkChainMiddleSetNullChildImpl extends FkChainMiddleSetNullChild {
|
||||
_FkChainMiddleSetNullChildImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? restrictBlockerId,
|
||||
_iavpmkia.FkChainRestrictBlocker? restrictBlocker,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
restrictBlockerId: restrictBlockerId,
|
||||
restrictBlocker: restrictBlocker,
|
||||
|
|
@ -165,14 +165,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 _is.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 _is.UuidValue?
|
||||
? restrictBlockerId
|
||||
|
|
@ -188,8 +188,8 @@ class FkChainMiddleSetNullChildUpdateTable
|
|||
extends _is.UpdateTable<FkChainMiddleSetNullChildTable> {
|
||||
FkChainMiddleSetNullChildUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -210,8 +210,8 @@ class FkChainMiddleSetNullChildTable extends _is.Table<_is.UuidValue?> {
|
|||
FkChainMiddleSetNullChildTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_middle_set_null_child') {
|
||||
updateTable = FkChainMiddleSetNullChildUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -226,8 +226,8 @@ class FkChainMiddleSetNullChildTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final FkChainMiddleSetNullChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -253,7 +253,7 @@ class FkChainMiddleSetNullChildTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
restrictBlockerId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class FkChainRestrictBlocker
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
FkChainRestrictBlocker._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.cascadeMiddleId,
|
||||
this.cascadeMiddle,
|
||||
|
|
@ -28,7 +28,7 @@ abstract class FkChainRestrictBlocker
|
|||
|
||||
factory FkChainRestrictBlocker({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class FkChainRestrictBlocker
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
cascadeMiddleId: jsonSerialization['cascadeMiddleId'] == null
|
||||
? null
|
||||
|
|
@ -63,8 +63,8 @@ abstract class FkChainRestrictBlocker
|
|||
@override
|
||||
_is.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 FkChainRestrictBlocker
|
|||
@_is.useResult
|
||||
FkChainRestrictBlocker copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_is.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
|
|
@ -90,7 +90,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(),
|
||||
|
|
@ -102,7 +102,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)
|
||||
|
|
@ -145,13 +145,13 @@ class _Undefined {}
|
|||
class _FkChainRestrictBlockerImpl extends FkChainRestrictBlocker {
|
||||
_FkChainRestrictBlockerImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
cascadeMiddleId: cascadeMiddleId,
|
||||
cascadeMiddle: cascadeMiddle,
|
||||
|
|
@ -163,14 +163,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 _is.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 _is.UuidValue?
|
||||
? cascadeMiddleId
|
||||
|
|
@ -186,8 +186,8 @@ class FkChainRestrictBlockerUpdateTable
|
|||
extends _is.UpdateTable<FkChainRestrictBlockerTable> {
|
||||
FkChainRestrictBlockerUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -208,8 +208,8 @@ class FkChainRestrictBlockerTable extends _is.Table<_is.UuidValue?> {
|
|||
FkChainRestrictBlockerTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_restrict_blocker') {
|
||||
updateTable = FkChainRestrictBlockerUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -224,8 +224,8 @@ class FkChainRestrictBlockerTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final FkChainRestrictBlockerUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -251,7 +251,7 @@ class FkChainRestrictBlockerTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
cascadeMiddleId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -16,13 +16,13 @@ abstract class FkChainRoot
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
FkChainRoot._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
});
|
||||
|
||||
factory FkChainRoot({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
}) = _FkChainRootImpl;
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ abstract class FkChainRoot
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
);
|
||||
}
|
||||
|
|
@ -43,8 +43,8 @@ abstract class FkChainRoot
|
|||
@override
|
||||
_is.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;
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ abstract class FkChainRoot
|
|||
@_is.useResult
|
||||
FkChainRoot copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
});
|
||||
@override
|
||||
|
|
@ -64,7 +64,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,
|
||||
};
|
||||
}
|
||||
|
|
@ -74,7 +74,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,
|
||||
};
|
||||
}
|
||||
|
|
@ -112,11 +112,11 @@ class _Undefined {}
|
|||
class _FkChainRootImpl extends FkChainRoot {
|
||||
_FkChainRootImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
);
|
||||
|
||||
|
|
@ -126,12 +126,12 @@ class _FkChainRootImpl extends FkChainRoot {
|
|||
@override
|
||||
FkChainRoot copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
}) {
|
||||
return FkChainRoot(
|
||||
id: id is _is.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
);
|
||||
}
|
||||
|
|
@ -140,8 +140,8 @@ class _FkChainRootImpl extends FkChainRoot {
|
|||
class FkChainRootUpdateTable extends _is.UpdateTable<FkChainRootTable> {
|
||||
FkChainRootUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -154,8 +154,8 @@ class FkChainRootUpdateTable extends _is.UpdateTable<FkChainRootTable> {
|
|||
class FkChainRootTable extends _is.Table<_is.UuidValue?> {
|
||||
FkChainRootTable({super.tableRelation}) : super(tableName: 'fk_chain_root') {
|
||||
updateTable = FkChainRootUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -166,15 +166,15 @@ class FkChainRootTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final FkChainRootUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class FkChainSetNullCascadeChild
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
FkChainSetNullCascadeChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.setNullMiddleId,
|
||||
this.setNullMiddle,
|
||||
|
|
@ -28,7 +28,7 @@ abstract class FkChainSetNullCascadeChild
|
|||
|
||||
factory FkChainSetNullCascadeChild({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class FkChainSetNullCascadeChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
setNullMiddleId: jsonSerialization['setNullMiddleId'] == null
|
||||
? null
|
||||
|
|
@ -63,8 +63,8 @@ abstract class FkChainSetNullCascadeChild
|
|||
@override
|
||||
_is.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 FkChainSetNullCascadeChild
|
|||
@_is.useResult
|
||||
FkChainSetNullCascadeChild copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_is.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -90,7 +90,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(),
|
||||
|
|
@ -102,7 +102,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)
|
||||
|
|
@ -145,13 +145,13 @@ class _Undefined {}
|
|||
class _FkChainSetNullCascadeChildImpl extends FkChainSetNullCascadeChild {
|
||||
_FkChainSetNullCascadeChildImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
setNullMiddleId: setNullMiddleId,
|
||||
setNullMiddle: setNullMiddle,
|
||||
|
|
@ -163,14 +163,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 _is.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 _is.UuidValue?
|
||||
? setNullMiddleId
|
||||
|
|
@ -186,8 +186,8 @@ class FkChainSetNullCascadeChildUpdateTable
|
|||
extends _is.UpdateTable<FkChainSetNullCascadeChildTable> {
|
||||
FkChainSetNullCascadeChildUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -208,8 +208,8 @@ class FkChainSetNullCascadeChildTable extends _is.Table<_is.UuidValue?> {
|
|||
FkChainSetNullCascadeChildTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_set_null_cascade_child') {
|
||||
updateTable = FkChainSetNullCascadeChildUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -224,8 +224,8 @@ class FkChainSetNullCascadeChildTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final FkChainSetNullCascadeChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -251,7 +251,7 @@ class FkChainSetNullCascadeChildTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
setNullMiddleId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class FkChainSetNullMiddle
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
FkChainSetNullMiddle._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.cascadeMiddleId,
|
||||
this.cascadeMiddle,
|
||||
|
|
@ -28,7 +28,7 @@ abstract class FkChainSetNullMiddle
|
|||
|
||||
factory FkChainSetNullMiddle({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class FkChainSetNullMiddle
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
cascadeMiddleId: jsonSerialization['cascadeMiddleId'] == null
|
||||
? null
|
||||
|
|
@ -63,8 +63,8 @@ abstract class FkChainSetNullMiddle
|
|||
@override
|
||||
_is.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 FkChainSetNullMiddle
|
|||
@_is.useResult
|
||||
FkChainSetNullMiddle copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_is.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
|
|
@ -90,7 +90,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(),
|
||||
|
|
@ -102,7 +102,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)
|
||||
|
|
@ -145,13 +145,13 @@ class _Undefined {}
|
|||
class _FkChainSetNullMiddleImpl extends FkChainSetNullMiddle {
|
||||
_FkChainSetNullMiddleImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? cascadeMiddleId,
|
||||
_i2nw0ajk.FkChainCascadeMiddle? cascadeMiddle,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
cascadeMiddleId: cascadeMiddleId,
|
||||
cascadeMiddle: cascadeMiddle,
|
||||
|
|
@ -163,14 +163,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 _is.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 _is.UuidValue?
|
||||
? cascadeMiddleId
|
||||
|
|
@ -186,8 +186,8 @@ class FkChainSetNullMiddleUpdateTable
|
|||
extends _is.UpdateTable<FkChainSetNullMiddleTable> {
|
||||
FkChainSetNullMiddleUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -208,8 +208,8 @@ class FkChainSetNullMiddleTable extends _is.Table<_is.UuidValue?> {
|
|||
FkChainSetNullMiddleTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_set_null_middle') {
|
||||
updateTable = FkChainSetNullMiddleUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -224,8 +224,8 @@ class FkChainSetNullMiddleTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final FkChainSetNullMiddleUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -251,7 +251,7 @@ class FkChainSetNullMiddleTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
cascadeMiddleId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class FkChainSetNullRestrictChild
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
FkChainSetNullRestrictChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.setNullMiddleId,
|
||||
this.setNullMiddle,
|
||||
|
|
@ -28,7 +28,7 @@ abstract class FkChainSetNullRestrictChild
|
|||
|
||||
factory FkChainSetNullRestrictChild({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class FkChainSetNullRestrictChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
setNullMiddleId: jsonSerialization['setNullMiddleId'] == null
|
||||
? null
|
||||
|
|
@ -63,8 +63,8 @@ abstract class FkChainSetNullRestrictChild
|
|||
@override
|
||||
_is.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 FkChainSetNullRestrictChild
|
|||
@_is.useResult
|
||||
FkChainSetNullRestrictChild copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_is.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -90,7 +90,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(),
|
||||
|
|
@ -102,7 +102,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)
|
||||
|
|
@ -145,13 +145,13 @@ class _Undefined {}
|
|||
class _FkChainSetNullRestrictChildImpl extends FkChainSetNullRestrictChild {
|
||||
_FkChainSetNullRestrictChildImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
setNullMiddleId: setNullMiddleId,
|
||||
setNullMiddle: setNullMiddle,
|
||||
|
|
@ -163,14 +163,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 _is.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 _is.UuidValue?
|
||||
? setNullMiddleId
|
||||
|
|
@ -186,8 +186,8 @@ class FkChainSetNullRestrictChildUpdateTable
|
|||
extends _is.UpdateTable<FkChainSetNullRestrictChildTable> {
|
||||
FkChainSetNullRestrictChildUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -208,8 +208,8 @@ class FkChainSetNullRestrictChildTable extends _is.Table<_is.UuidValue?> {
|
|||
FkChainSetNullRestrictChildTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_set_null_restrict_child') {
|
||||
updateTable = FkChainSetNullRestrictChildUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -224,8 +224,8 @@ class FkChainSetNullRestrictChildTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final FkChainSetNullRestrictChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -251,7 +251,7 @@ class FkChainSetNullRestrictChildTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
setNullMiddleId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class FkChainSetNullSetNullChild
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
FkChainSetNullSetNullChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.setNullMiddleId,
|
||||
this.setNullMiddle,
|
||||
|
|
@ -28,7 +28,7 @@ abstract class FkChainSetNullSetNullChild
|
|||
|
||||
factory FkChainSetNullSetNullChild({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class FkChainSetNullSetNullChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
setNullMiddleId: jsonSerialization['setNullMiddleId'] == null
|
||||
? null
|
||||
|
|
@ -63,8 +63,8 @@ abstract class FkChainSetNullSetNullChild
|
|||
@override
|
||||
_is.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 FkChainSetNullSetNullChild
|
|||
@_is.useResult
|
||||
FkChainSetNullSetNullChild copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_is.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
|
|
@ -90,7 +90,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(),
|
||||
|
|
@ -102,7 +102,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)
|
||||
|
|
@ -145,13 +145,13 @@ class _Undefined {}
|
|||
class _FkChainSetNullSetNullChildImpl extends FkChainSetNullSetNullChild {
|
||||
_FkChainSetNullSetNullChildImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? setNullMiddleId,
|
||||
_izcicqvj.FkChainSetNullMiddle? setNullMiddle,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
setNullMiddleId: setNullMiddleId,
|
||||
setNullMiddle: setNullMiddle,
|
||||
|
|
@ -163,14 +163,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 _is.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 _is.UuidValue?
|
||||
? setNullMiddleId
|
||||
|
|
@ -186,8 +186,8 @@ class FkChainSetNullSetNullChildUpdateTable
|
|||
extends _is.UpdateTable<FkChainSetNullSetNullChildTable> {
|
||||
FkChainSetNullSetNullChildUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -208,8 +208,8 @@ class FkChainSetNullSetNullChildTable extends _is.Table<_is.UuidValue?> {
|
|||
FkChainSetNullSetNullChildTable({super.tableRelation})
|
||||
: super(tableName: 'fk_chain_set_null_set_null_child') {
|
||||
updateTable = FkChainSetNullSetNullChildUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -224,8 +224,8 @@ class FkChainSetNullSetNullChildTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final FkChainSetNullSetNullChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -251,7 +251,7 @@ class FkChainSetNullSetNullChildTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
setNullMiddleId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class NullableSetDefaultChild
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
NullableSetDefaultChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.parentId,
|
||||
this.parent,
|
||||
|
|
@ -28,7 +28,7 @@ abstract class NullableSetDefaultChild
|
|||
|
||||
factory NullableSetDefaultChild({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? parentId,
|
||||
_iensfz4m.Person? parent,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class NullableSetDefaultChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
parentId: jsonSerialization['parentId'] == null
|
||||
? null
|
||||
|
|
@ -61,8 +61,8 @@ abstract class NullableSetDefaultChild
|
|||
@override
|
||||
_is.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;
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ abstract class NullableSetDefaultChild
|
|||
@_is.useResult
|
||||
NullableSetDefaultChild copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_is.UuidValue? parentId,
|
||||
_iensfz4m.Person? parent,
|
||||
|
|
@ -88,7 +88,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(),
|
||||
|
|
@ -100,7 +100,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(),
|
||||
|
|
@ -142,13 +142,13 @@ class _Undefined {}
|
|||
class _NullableSetDefaultChildImpl extends NullableSetDefaultChild {
|
||||
_NullableSetDefaultChildImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
_is.UuidValue? parentId,
|
||||
_iensfz4m.Person? parent,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
parentId: parentId,
|
||||
parent: parent,
|
||||
|
|
@ -160,14 +160,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 _is.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 _is.UuidValue? ? parentId : this.parentId,
|
||||
parent: parent is _iensfz4m.Person? ? parent : this.parent?.copyWith(),
|
||||
|
|
@ -179,8 +179,8 @@ class NullableSetDefaultChildUpdateTable
|
|||
extends _is.UpdateTable<NullableSetDefaultChildTable> {
|
||||
NullableSetDefaultChildUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -201,8 +201,8 @@ class NullableSetDefaultChildTable extends _is.Table<_is.UuidValue?> {
|
|||
NullableSetDefaultChildTable({super.tableRelation})
|
||||
: super(tableName: 'nullable_set_default_child') {
|
||||
updateTable = NullableSetDefaultChildUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -217,8 +217,8 @@ class NullableSetDefaultChildTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final NullableSetDefaultChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -242,7 +242,7 @@ class NullableSetDefaultChildTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
parentId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ abstract class Organization
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
Organization._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.people,
|
||||
this.cityId,
|
||||
|
|
@ -30,7 +30,7 @@ abstract class Organization
|
|||
|
||||
factory Organization({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
List<_iensfz4m.Person>? people,
|
||||
_is.UuidValue? cityId,
|
||||
|
|
@ -42,7 +42,7 @@ abstract class Organization
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
people: jsonSerialization['people'] == null
|
||||
? null
|
||||
|
|
@ -67,8 +67,8 @@ abstract class Organization
|
|||
@override
|
||||
_is.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;
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ abstract class Organization
|
|||
@_is.useResult
|
||||
Organization copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
List<_iensfz4m.Person>? people,
|
||||
_is.UuidValue? cityId,
|
||||
|
|
@ -97,7 +97,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()),
|
||||
|
|
@ -111,7 +111,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()),
|
||||
|
|
@ -159,14 +159,14 @@ class _Undefined {}
|
|||
class _OrganizationImpl extends Organization {
|
||||
_OrganizationImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
List<_iensfz4m.Person>? people,
|
||||
_is.UuidValue? cityId,
|
||||
_ior3absd.City? city,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
people: people,
|
||||
cityId: cityId,
|
||||
|
|
@ -179,7 +179,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,
|
||||
|
|
@ -187,7 +187,7 @@ class _OrganizationImpl extends Organization {
|
|||
}) {
|
||||
return Organization(
|
||||
id: id is _is.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
|
||||
|
|
@ -201,8 +201,8 @@ class _OrganizationImpl extends Organization {
|
|||
class OrganizationUpdateTable extends _is.UpdateTable<OrganizationTable> {
|
||||
OrganizationUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -221,8 +221,8 @@ class OrganizationUpdateTable extends _is.UpdateTable<OrganizationTable> {
|
|||
class OrganizationTable extends _is.Table<_is.UuidValue?> {
|
||||
OrganizationTable({super.tableRelation}) : super(tableName: 'organization') {
|
||||
updateTable = OrganizationUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -237,8 +237,8 @@ class OrganizationTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final OrganizationUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -298,7 +298,7 @@ class OrganizationTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
cityId,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ abstract class Person
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
Person._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
this.surname,
|
||||
this.address,
|
||||
|
|
@ -37,7 +37,7 @@ abstract class Person
|
|||
|
||||
factory Person({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
String? surname,
|
||||
_ilb4pipw.Address? address,
|
||||
|
|
@ -54,7 +54,7 @@ abstract class Person
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
surname: jsonSerialization['surname'] as String?,
|
||||
address: jsonSerialization['address'] == null
|
||||
|
|
@ -100,8 +100,8 @@ abstract class Person
|
|||
@override
|
||||
_is.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;
|
||||
|
||||
|
|
@ -129,7 +129,7 @@ abstract class Person
|
|||
@_is.useResult
|
||||
Person copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
String? surname,
|
||||
_ilb4pipw.Address? address,
|
||||
|
|
@ -145,7 +145,7 @@ abstract class Person
|
|||
return {
|
||||
'__className__': 'Person',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (surname != null) 'surname': surname,
|
||||
if (address != null) 'address': address?.toJson(),
|
||||
|
|
@ -163,7 +163,7 @@ abstract class Person
|
|||
return {
|
||||
'__className__': 'Person',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
if (surname != null) 'surname': surname,
|
||||
if (address != null) 'address': address?.toJsonForProtocol(),
|
||||
|
|
@ -220,7 +220,7 @@ class _Undefined {}
|
|||
class _PersonImpl extends Person {
|
||||
_PersonImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
String? surname,
|
||||
_ilb4pipw.Address? address,
|
||||
|
|
@ -232,7 +232,7 @@ class _PersonImpl extends Person {
|
|||
_ior3absd.City? city,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
surname: surname,
|
||||
address: address,
|
||||
|
|
@ -250,7 +250,7 @@ class _PersonImpl extends Person {
|
|||
@override
|
||||
Person copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
Object? surname = _Undefined,
|
||||
Object? address = _Undefined,
|
||||
|
|
@ -263,7 +263,7 @@ class _PersonImpl extends Person {
|
|||
}) {
|
||||
return Person(
|
||||
id: id is _is.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
surname: surname is String? ? surname : this.surname,
|
||||
address: address is _ilb4pipw.Address?
|
||||
|
|
@ -290,8 +290,8 @@ class _PersonImpl extends Person {
|
|||
class PersonUpdateTable extends _is.UpdateTable<PersonTable> {
|
||||
PersonUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -329,8 +329,8 @@ class PersonUpdateTable extends _is.UpdateTable<PersonTable> {
|
|||
class PersonTable extends _is.Table<_is.UuidValue?> {
|
||||
PersonTable({super.tableRelation}) : super(tableName: 'person') {
|
||||
updateTable = PersonUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -357,8 +357,8 @@ class PersonTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final PersonUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -433,7 +433,7 @@ class PersonTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
surname,
|
||||
organizationId,
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -132,8 +132,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'address_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -182,7 +182,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -197,8 +197,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'city_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -223,7 +223,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -245,8 +245,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'company_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -282,7 +282,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -303,8 +303,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'fk_chain_cascade_middle_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -340,7 +340,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -361,8 +361,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'fk_chain_middle_cascade_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -398,7 +398,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -419,8 +419,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'fk_chain_middle_set_null_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -456,7 +456,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -477,8 +477,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'fk_chain_restrict_blocker_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -514,7 +514,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -529,8 +529,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'fk_chain_root_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -555,7 +555,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -576,8 +576,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'fk_chain_set_null_cascade_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -613,7 +613,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -634,8 +634,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'fk_chain_set_null_middle_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -671,7 +671,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -692,8 +692,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'fk_chain_set_null_restrict_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -729,7 +729,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -750,8 +750,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'fk_chain_set_null_set_null_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -787,7 +787,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -808,8 +808,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'nullable_set_default_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -845,7 +845,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -866,8 +866,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'organization_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -903,7 +903,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -942,8 +942,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'person_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1000,7 +1000,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1021,8 +1021,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'required_cascade_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1058,7 +1058,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1079,8 +1079,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'required_no_action_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1116,7 +1116,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1137,8 +1137,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'required_set_null_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1174,7 +1174,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1195,8 +1195,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'restrict_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1232,7 +1232,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1259,8 +1259,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'town_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1307,7 +1307,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1376,8 +1376,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'types_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1416,7 +1416,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1431,8 +1431,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1442,12 +1442,12 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
],
|
||||
indexes: [
|
||||
_isp.IndexDefinition(
|
||||
indexName: 'unique__scopeId__name__unique_idx',
|
||||
indexName: 'unique__spaceId__name__unique_idx',
|
||||
tableSpace: null,
|
||||
elements: [
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
definition: 'scopeId',
|
||||
definition: 'spaceId',
|
||||
),
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
|
|
@ -1475,7 +1475,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1496,8 +1496,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_cascade_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1518,12 +1518,12 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
],
|
||||
indexes: [
|
||||
_isp.IndexDefinition(
|
||||
indexName: 'unique_cascade_child__scopeId__name__unique_idx',
|
||||
indexName: 'unique_cascade_child__spaceId__name__unique_idx',
|
||||
tableSpace: null,
|
||||
elements: [
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
definition: 'scopeId',
|
||||
definition: 'spaceId',
|
||||
),
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
|
|
@ -1551,7 +1551,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1572,8 +1572,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_cascade_reference_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1623,7 +1623,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1644,8 +1644,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_composite_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1655,12 +1655,12 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
],
|
||||
indexes: [
|
||||
_isp.IndexDefinition(
|
||||
indexName: 'unique_composite__scopeId__scope__value__unique_idx',
|
||||
indexName: 'unique_composite__spaceId__scope__value__unique_idx',
|
||||
tableSpace: null,
|
||||
elements: [
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
definition: 'scopeId',
|
||||
definition: 'spaceId',
|
||||
),
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
|
|
@ -1692,7 +1692,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1713,8 +1713,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_discriminator_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1725,12 +1725,12 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
indexes: [
|
||||
_isp.IndexDefinition(
|
||||
indexName:
|
||||
'unique_discriminator__scopeId__categoryId__name__unique_idx',
|
||||
'unique_discriminator__spaceId__categoryId__name__unique_idx',
|
||||
tableSpace: null,
|
||||
elements: [
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
definition: 'scopeId',
|
||||
definition: 'spaceId',
|
||||
),
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
|
|
@ -1762,7 +1762,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1789,8 +1789,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_fk_pair_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1855,7 +1855,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1876,8 +1876,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_mixed_fk_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1903,7 +1903,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
elements: [
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
definition: 'scopeId',
|
||||
definition: 'spaceId',
|
||||
),
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
|
|
@ -1935,7 +1935,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -1950,8 +1950,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_no_release_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -1961,12 +1961,12 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
],
|
||||
indexes: [
|
||||
_isp.IndexDefinition(
|
||||
indexName: 'unique_no_release__scopeId__categoryId__unique_idx',
|
||||
indexName: 'unique_no_release__spaceId__categoryId__unique_idx',
|
||||
tableSpace: null,
|
||||
elements: [
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
definition: 'scopeId',
|
||||
definition: 'spaceId',
|
||||
),
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
|
|
@ -1994,7 +1994,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -2009,8 +2009,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_nullable_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -2020,12 +2020,12 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
],
|
||||
indexes: [
|
||||
_isp.IndexDefinition(
|
||||
indexName: 'unique_nullable__scopeId__value__unique_idx',
|
||||
indexName: 'unique_nullable__spaceId__value__unique_idx',
|
||||
tableSpace: null,
|
||||
elements: [
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
definition: 'scopeId',
|
||||
definition: 'spaceId',
|
||||
),
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
|
|
@ -2053,7 +2053,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -2080,8 +2080,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_overlapping_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -2096,7 +2096,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
elements: [
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
definition: 'scopeId',
|
||||
definition: 'spaceId',
|
||||
),
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
|
|
@ -2117,7 +2117,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
elements: [
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
definition: 'scopeId',
|
||||
definition: 'spaceId',
|
||||
),
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
|
|
@ -2149,7 +2149,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -2171,8 +2171,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_set_default_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -2222,7 +2222,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -2243,8 +2243,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_set_null_child_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -2294,7 +2294,7 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
columnDefault: 'random_v7',
|
||||
),
|
||||
_isp.ColumnDefinition(
|
||||
name: 'scopeId',
|
||||
name: 'spaceId',
|
||||
columnType: _isp.ColumnType.bigint,
|
||||
isNullable: true,
|
||||
dartType: 'int?',
|
||||
|
|
@ -2309,8 +2309,8 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
foreignKeys: [
|
||||
_isp.ForeignKeyDefinition(
|
||||
constraintName: 'unique_uuid_fk_0',
|
||||
columns: ['scopeId'],
|
||||
referenceTable: 'crdt_scopes',
|
||||
columns: ['spaceId'],
|
||||
referenceTable: 'offline_sync_spaces',
|
||||
referenceTableSchema: 'public',
|
||||
referenceColumns: ['id'],
|
||||
onUpdate: _isp.ForeignKeyAction.noAction,
|
||||
|
|
@ -2320,12 +2320,12 @@ class Protocol extends _is.DatabaseSerializationManager {
|
|||
],
|
||||
indexes: [
|
||||
_isp.IndexDefinition(
|
||||
indexName: 'unique_uuid__scopeId__value__unique_idx',
|
||||
indexName: 'unique_uuid__spaceId__value__unique_idx',
|
||||
tableSpace: null,
|
||||
elements: [
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
definition: 'scopeId',
|
||||
definition: 'spaceId',
|
||||
),
|
||||
_isp.IndexElementDefinition(
|
||||
type: _isp.IndexElementDefinitionType.column,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
demoAuth:
|
||||
- loginOrCreateUser:
|
||||
demoDebug:
|
||||
- fetchScopeSnapshot:
|
||||
- resetScope:
|
||||
- seedScope:
|
||||
- fetchSpaceSnapshot:
|
||||
- resetSpace:
|
||||
- seedSpace:
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ abstract class RequiredCascadeChild
|
|||
implements _is.TableRow<_is.UuidValue?>, _is.ProtocolSerialization {
|
||||
RequiredCascadeChild._({
|
||||
this.id,
|
||||
this.scopeId,
|
||||
this.spaceId,
|
||||
required this.name,
|
||||
required this.parentId,
|
||||
this.parent,
|
||||
|
|
@ -28,7 +28,7 @@ abstract class RequiredCascadeChild
|
|||
|
||||
factory RequiredCascadeChild({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
required _is.UuidValue parentId,
|
||||
_iensfz4m.Person? parent,
|
||||
|
|
@ -41,7 +41,7 @@ abstract class RequiredCascadeChild
|
|||
id: jsonSerialization['id'] == null
|
||||
? null
|
||||
: _is.UuidValueJsonExtension.fromJson(jsonSerialization['id']),
|
||||
scopeId: jsonSerialization['scopeId'] as int?,
|
||||
spaceId: jsonSerialization['spaceId'] as int?,
|
||||
name: jsonSerialization['name'] as String,
|
||||
parentId: _is.UuidValueJsonExtension.fromJson(
|
||||
jsonSerialization['parentId'],
|
||||
|
|
@ -61,8 +61,8 @@ abstract class RequiredCascadeChild
|
|||
@override
|
||||
_is.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;
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ abstract class RequiredCascadeChild
|
|||
@_is.useResult
|
||||
RequiredCascadeChild copyWith({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
String? name,
|
||||
_is.UuidValue? parentId,
|
||||
_iensfz4m.Person? parent,
|
||||
|
|
@ -88,7 +88,7 @@ abstract class RequiredCascadeChild
|
|||
return {
|
||||
'__className__': 'RequiredCascadeChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
'parentId': parentId.toJson(),
|
||||
if (parent != null) 'parent': parent?.toJson(),
|
||||
|
|
@ -100,7 +100,7 @@ abstract class RequiredCascadeChild
|
|||
return {
|
||||
'__className__': 'RequiredCascadeChild',
|
||||
if (id != null) 'id': id?.toJson(),
|
||||
if (scopeId != null) 'scopeId': scopeId,
|
||||
if (spaceId != null) 'spaceId': spaceId,
|
||||
'name': name,
|
||||
'parentId': parentId.toJson(),
|
||||
if (parent != null) 'parent': parent?.toJsonForProtocol(),
|
||||
|
|
@ -142,13 +142,13 @@ class _Undefined {}
|
|||
class _RequiredCascadeChildImpl extends RequiredCascadeChild {
|
||||
_RequiredCascadeChildImpl({
|
||||
_is.UuidValue? id,
|
||||
int? scopeId,
|
||||
int? spaceId,
|
||||
required String name,
|
||||
required _is.UuidValue parentId,
|
||||
_iensfz4m.Person? parent,
|
||||
}) : super._(
|
||||
id: id,
|
||||
scopeId: scopeId,
|
||||
spaceId: spaceId,
|
||||
name: name,
|
||||
parentId: parentId,
|
||||
parent: parent,
|
||||
|
|
@ -160,14 +160,14 @@ class _RequiredCascadeChildImpl extends RequiredCascadeChild {
|
|||
@override
|
||||
RequiredCascadeChild copyWith({
|
||||
Object? id = _Undefined,
|
||||
Object? scopeId = _Undefined,
|
||||
Object? spaceId = _Undefined,
|
||||
String? name,
|
||||
_is.UuidValue? parentId,
|
||||
Object? parent = _Undefined,
|
||||
}) {
|
||||
return RequiredCascadeChild(
|
||||
id: id is _is.UuidValue? ? id : this.id,
|
||||
scopeId: scopeId is int? ? scopeId : this.scopeId,
|
||||
spaceId: spaceId is int? ? spaceId : this.spaceId,
|
||||
name: name ?? this.name,
|
||||
parentId: parentId ?? this.parentId,
|
||||
parent: parent is _iensfz4m.Person? ? parent : this.parent?.copyWith(),
|
||||
|
|
@ -179,8 +179,8 @@ class RequiredCascadeChildUpdateTable
|
|||
extends _is.UpdateTable<RequiredCascadeChildTable> {
|
||||
RequiredCascadeChildUpdateTable(super.table);
|
||||
|
||||
_is.ColumnValue<int, int> scopeId(int? value) => _is.ColumnValue(
|
||||
table.scopeId,
|
||||
_is.ColumnValue<int, int> spaceId(int? value) => _is.ColumnValue(
|
||||
table.spaceId,
|
||||
value,
|
||||
);
|
||||
|
||||
|
|
@ -200,8 +200,8 @@ class RequiredCascadeChildTable extends _is.Table<_is.UuidValue?> {
|
|||
RequiredCascadeChildTable({super.tableRelation})
|
||||
: super(tableName: 'required_cascade_child') {
|
||||
updateTable = RequiredCascadeChildUpdateTable(this);
|
||||
scopeId = _is.ColumnInt(
|
||||
'scopeId',
|
||||
spaceId = _is.ColumnInt(
|
||||
'spaceId',
|
||||
this,
|
||||
);
|
||||
name = _is.ColumnString(
|
||||
|
|
@ -216,8 +216,8 @@ class RequiredCascadeChildTable extends _is.Table<_is.UuidValue?> {
|
|||
|
||||
late final RequiredCascadeChildUpdateTable updateTable;
|
||||
|
||||
/// The scope owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt scopeId;
|
||||
/// The space owning this row. Maintained by the sync engine.
|
||||
late final _is.ColumnInt spaceId;
|
||||
|
||||
late final _is.ColumnString name;
|
||||
|
||||
|
|
@ -241,7 +241,7 @@ class RequiredCascadeChildTable extends _is.Table<_is.UuidValue?> {
|
|||
@override
|
||||
List<_is.Column> get columns => [
|
||||
id,
|
||||
scopeId,
|
||||
spaceId,
|
||||
name,
|
||||
parentId,
|
||||
];
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue