Gitea CI / Assemble and validate CI artifacts (push) Successful in 1m47s
Gitea CI / Check code and tests (push) Successful in 7m15s
Gitea CI / Build Android APK (push) Successful in 4m6s
Gitea CI / Build Windows x64 app (push) Successful in 3m34s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m29s
Gitea CI / Gitea CI passed (push) Successful in 1s
Gitea Release / Prepare draft Release (push) Failing after 8s
Gitea Release / Upload Android to draft Release (push) Skipped
Gitea Release / Upload Windows to draft Release (push) Skipped
Gitea Release / Verify and publish Release (push) Skipped
7478 lines
234 KiB
Dart
7478 lines
234 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'app_database.dart';
|
|
|
|
// ignore_for_file: type=lint
|
|
class $RecentProjectRecordsTable extends RecentProjectRecords
|
|
with TableInfo<$RecentProjectRecordsTable, RecentProjectRecord> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$RecentProjectRecordsTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _idMeta = const VerificationMeta('id');
|
|
@override
|
|
late final GeneratedColumn<String> id = GeneratedColumn<String>(
|
|
'id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _nameMeta = const VerificationMeta('name');
|
|
@override
|
|
late final GeneratedColumn<String> name = GeneratedColumn<String>(
|
|
'name',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _pathMeta = const VerificationMeta('path');
|
|
@override
|
|
late final GeneratedColumn<String> path = GeneratedColumn<String>(
|
|
'path',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _positionMeta = const VerificationMeta(
|
|
'position',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<int> position = GeneratedColumn<int>(
|
|
'position',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: true,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [id, name, path, position];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'recent_project_records';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<RecentProjectRecord> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('id')) {
|
|
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
|
|
} else if (isInserting) {
|
|
context.missing(_idMeta);
|
|
}
|
|
if (data.containsKey('name')) {
|
|
context.handle(
|
|
_nameMeta,
|
|
name.isAcceptableOrUnknown(data['name']!, _nameMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_nameMeta);
|
|
}
|
|
if (data.containsKey('path')) {
|
|
context.handle(
|
|
_pathMeta,
|
|
path.isAcceptableOrUnknown(data['path']!, _pathMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_pathMeta);
|
|
}
|
|
if (data.containsKey('position')) {
|
|
context.handle(
|
|
_positionMeta,
|
|
position.isAcceptableOrUnknown(data['position']!, _positionMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_positionMeta);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {id};
|
|
@override
|
|
RecentProjectRecord map(Map<String, dynamic> data, {String? tablePrefix}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return RecentProjectRecord(
|
|
id: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}id'],
|
|
)!,
|
|
name: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}name'],
|
|
)!,
|
|
path: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}path'],
|
|
)!,
|
|
position: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}position'],
|
|
)!,
|
|
);
|
|
}
|
|
|
|
@override
|
|
$RecentProjectRecordsTable createAlias(String alias) {
|
|
return $RecentProjectRecordsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class RecentProjectRecord extends DataClass
|
|
implements Insertable<RecentProjectRecord> {
|
|
final String id;
|
|
final String name;
|
|
final String path;
|
|
final int position;
|
|
const RecentProjectRecord({
|
|
required this.id,
|
|
required this.name,
|
|
required this.path,
|
|
required this.position,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['id'] = Variable<String>(id);
|
|
map['name'] = Variable<String>(name);
|
|
map['path'] = Variable<String>(path);
|
|
map['position'] = Variable<int>(position);
|
|
return map;
|
|
}
|
|
|
|
RecentProjectRecordsCompanion toCompanion(bool nullToAbsent) {
|
|
return RecentProjectRecordsCompanion(
|
|
id: Value(id),
|
|
name: Value(name),
|
|
path: Value(path),
|
|
position: Value(position),
|
|
);
|
|
}
|
|
|
|
factory RecentProjectRecord.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return RecentProjectRecord(
|
|
id: serializer.fromJson<String>(json['id']),
|
|
name: serializer.fromJson<String>(json['name']),
|
|
path: serializer.fromJson<String>(json['path']),
|
|
position: serializer.fromJson<int>(json['position']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'id': serializer.toJson<String>(id),
|
|
'name': serializer.toJson<String>(name),
|
|
'path': serializer.toJson<String>(path),
|
|
'position': serializer.toJson<int>(position),
|
|
};
|
|
}
|
|
|
|
RecentProjectRecord copyWith({
|
|
String? id,
|
|
String? name,
|
|
String? path,
|
|
int? position,
|
|
}) => RecentProjectRecord(
|
|
id: id ?? this.id,
|
|
name: name ?? this.name,
|
|
path: path ?? this.path,
|
|
position: position ?? this.position,
|
|
);
|
|
RecentProjectRecord copyWithCompanion(RecentProjectRecordsCompanion data) {
|
|
return RecentProjectRecord(
|
|
id: data.id.present ? data.id.value : this.id,
|
|
name: data.name.present ? data.name.value : this.name,
|
|
path: data.path.present ? data.path.value : this.path,
|
|
position: data.position.present ? data.position.value : this.position,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('RecentProjectRecord(')
|
|
..write('id: $id, ')
|
|
..write('name: $name, ')
|
|
..write('path: $path, ')
|
|
..write('position: $position')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(id, name, path, position);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is RecentProjectRecord &&
|
|
other.id == this.id &&
|
|
other.name == this.name &&
|
|
other.path == this.path &&
|
|
other.position == this.position);
|
|
}
|
|
|
|
class RecentProjectRecordsCompanion
|
|
extends UpdateCompanion<RecentProjectRecord> {
|
|
final Value<String> id;
|
|
final Value<String> name;
|
|
final Value<String> path;
|
|
final Value<int> position;
|
|
final Value<int> rowid;
|
|
const RecentProjectRecordsCompanion({
|
|
this.id = const Value.absent(),
|
|
this.name = const Value.absent(),
|
|
this.path = const Value.absent(),
|
|
this.position = const Value.absent(),
|
|
this.rowid = const Value.absent(),
|
|
});
|
|
RecentProjectRecordsCompanion.insert({
|
|
required String id,
|
|
required String name,
|
|
required String path,
|
|
required int position,
|
|
this.rowid = const Value.absent(),
|
|
}) : id = Value(id),
|
|
name = Value(name),
|
|
path = Value(path),
|
|
position = Value(position);
|
|
static Insertable<RecentProjectRecord> custom({
|
|
Expression<String>? id,
|
|
Expression<String>? name,
|
|
Expression<String>? path,
|
|
Expression<int>? position,
|
|
Expression<int>? rowid,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (id != null) 'id': id,
|
|
if (name != null) 'name': name,
|
|
if (path != null) 'path': path,
|
|
if (position != null) 'position': position,
|
|
if (rowid != null) 'rowid': rowid,
|
|
});
|
|
}
|
|
|
|
RecentProjectRecordsCompanion copyWith({
|
|
Value<String>? id,
|
|
Value<String>? name,
|
|
Value<String>? path,
|
|
Value<int>? position,
|
|
Value<int>? rowid,
|
|
}) {
|
|
return RecentProjectRecordsCompanion(
|
|
id: id ?? this.id,
|
|
name: name ?? this.name,
|
|
path: path ?? this.path,
|
|
position: position ?? this.position,
|
|
rowid: rowid ?? this.rowid,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (id.present) {
|
|
map['id'] = Variable<String>(id.value);
|
|
}
|
|
if (name.present) {
|
|
map['name'] = Variable<String>(name.value);
|
|
}
|
|
if (path.present) {
|
|
map['path'] = Variable<String>(path.value);
|
|
}
|
|
if (position.present) {
|
|
map['position'] = Variable<int>(position.value);
|
|
}
|
|
if (rowid.present) {
|
|
map['rowid'] = Variable<int>(rowid.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('RecentProjectRecordsCompanion(')
|
|
..write('id: $id, ')
|
|
..write('name: $name, ')
|
|
..write('path: $path, ')
|
|
..write('position: $position, ')
|
|
..write('rowid: $rowid')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $LastOpenedTimelinesTable extends LastOpenedTimelines
|
|
with TableInfo<$LastOpenedTimelinesTable, LastOpenedTimeline> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$LastOpenedTimelinesTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _projectIdMeta = const VerificationMeta(
|
|
'projectId',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> projectId = GeneratedColumn<String>(
|
|
'project_id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _timelineIdMeta = const VerificationMeta(
|
|
'timelineId',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> timelineId = GeneratedColumn<String>(
|
|
'timeline_id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [projectId, timelineId];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'last_opened_timelines';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<LastOpenedTimeline> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('project_id')) {
|
|
context.handle(
|
|
_projectIdMeta,
|
|
projectId.isAcceptableOrUnknown(data['project_id']!, _projectIdMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_projectIdMeta);
|
|
}
|
|
if (data.containsKey('timeline_id')) {
|
|
context.handle(
|
|
_timelineIdMeta,
|
|
timelineId.isAcceptableOrUnknown(data['timeline_id']!, _timelineIdMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_timelineIdMeta);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {projectId};
|
|
@override
|
|
LastOpenedTimeline map(Map<String, dynamic> data, {String? tablePrefix}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return LastOpenedTimeline(
|
|
projectId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}project_id'],
|
|
)!,
|
|
timelineId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}timeline_id'],
|
|
)!,
|
|
);
|
|
}
|
|
|
|
@override
|
|
$LastOpenedTimelinesTable createAlias(String alias) {
|
|
return $LastOpenedTimelinesTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class LastOpenedTimeline extends DataClass
|
|
implements Insertable<LastOpenedTimeline> {
|
|
final String projectId;
|
|
final String timelineId;
|
|
const LastOpenedTimeline({required this.projectId, required this.timelineId});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['project_id'] = Variable<String>(projectId);
|
|
map['timeline_id'] = Variable<String>(timelineId);
|
|
return map;
|
|
}
|
|
|
|
LastOpenedTimelinesCompanion toCompanion(bool nullToAbsent) {
|
|
return LastOpenedTimelinesCompanion(
|
|
projectId: Value(projectId),
|
|
timelineId: Value(timelineId),
|
|
);
|
|
}
|
|
|
|
factory LastOpenedTimeline.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return LastOpenedTimeline(
|
|
projectId: serializer.fromJson<String>(json['projectId']),
|
|
timelineId: serializer.fromJson<String>(json['timelineId']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'projectId': serializer.toJson<String>(projectId),
|
|
'timelineId': serializer.toJson<String>(timelineId),
|
|
};
|
|
}
|
|
|
|
LastOpenedTimeline copyWith({String? projectId, String? timelineId}) =>
|
|
LastOpenedTimeline(
|
|
projectId: projectId ?? this.projectId,
|
|
timelineId: timelineId ?? this.timelineId,
|
|
);
|
|
LastOpenedTimeline copyWithCompanion(LastOpenedTimelinesCompanion data) {
|
|
return LastOpenedTimeline(
|
|
projectId: data.projectId.present ? data.projectId.value : this.projectId,
|
|
timelineId: data.timelineId.present
|
|
? data.timelineId.value
|
|
: this.timelineId,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('LastOpenedTimeline(')
|
|
..write('projectId: $projectId, ')
|
|
..write('timelineId: $timelineId')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(projectId, timelineId);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is LastOpenedTimeline &&
|
|
other.projectId == this.projectId &&
|
|
other.timelineId == this.timelineId);
|
|
}
|
|
|
|
class LastOpenedTimelinesCompanion extends UpdateCompanion<LastOpenedTimeline> {
|
|
final Value<String> projectId;
|
|
final Value<String> timelineId;
|
|
final Value<int> rowid;
|
|
const LastOpenedTimelinesCompanion({
|
|
this.projectId = const Value.absent(),
|
|
this.timelineId = const Value.absent(),
|
|
this.rowid = const Value.absent(),
|
|
});
|
|
LastOpenedTimelinesCompanion.insert({
|
|
required String projectId,
|
|
required String timelineId,
|
|
this.rowid = const Value.absent(),
|
|
}) : projectId = Value(projectId),
|
|
timelineId = Value(timelineId);
|
|
static Insertable<LastOpenedTimeline> custom({
|
|
Expression<String>? projectId,
|
|
Expression<String>? timelineId,
|
|
Expression<int>? rowid,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (projectId != null) 'project_id': projectId,
|
|
if (timelineId != null) 'timeline_id': timelineId,
|
|
if (rowid != null) 'rowid': rowid,
|
|
});
|
|
}
|
|
|
|
LastOpenedTimelinesCompanion copyWith({
|
|
Value<String>? projectId,
|
|
Value<String>? timelineId,
|
|
Value<int>? rowid,
|
|
}) {
|
|
return LastOpenedTimelinesCompanion(
|
|
projectId: projectId ?? this.projectId,
|
|
timelineId: timelineId ?? this.timelineId,
|
|
rowid: rowid ?? this.rowid,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (projectId.present) {
|
|
map['project_id'] = Variable<String>(projectId.value);
|
|
}
|
|
if (timelineId.present) {
|
|
map['timeline_id'] = Variable<String>(timelineId.value);
|
|
}
|
|
if (rowid.present) {
|
|
map['rowid'] = Variable<int>(rowid.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('LastOpenedTimelinesCompanion(')
|
|
..write('projectId: $projectId, ')
|
|
..write('timelineId: $timelineId, ')
|
|
..write('rowid: $rowid')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $McpConfigurationsTable extends McpConfigurations
|
|
with TableInfo<$McpConfigurationsTable, McpConfiguration> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$McpConfigurationsTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _idMeta = const VerificationMeta('id');
|
|
@override
|
|
late final GeneratedColumn<int> id = GeneratedColumn<int>(
|
|
'id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _enabledMeta = const VerificationMeta(
|
|
'enabled',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<bool> enabled = GeneratedColumn<bool>(
|
|
'enabled',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.bool,
|
|
requiredDuringInsert: true,
|
|
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
|
'CHECK ("enabled" IN (0, 1))',
|
|
),
|
|
);
|
|
static const VerificationMeta _portMeta = const VerificationMeta('port');
|
|
@override
|
|
late final GeneratedColumn<int> port = GeneratedColumn<int>(
|
|
'port',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _tokenMeta = const VerificationMeta('token');
|
|
@override
|
|
late final GeneratedColumn<String> token = GeneratedColumn<String>(
|
|
'token',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [id, enabled, port, token];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'mcp_configurations';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<McpConfiguration> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('id')) {
|
|
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
|
|
}
|
|
if (data.containsKey('enabled')) {
|
|
context.handle(
|
|
_enabledMeta,
|
|
enabled.isAcceptableOrUnknown(data['enabled']!, _enabledMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_enabledMeta);
|
|
}
|
|
if (data.containsKey('port')) {
|
|
context.handle(
|
|
_portMeta,
|
|
port.isAcceptableOrUnknown(data['port']!, _portMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_portMeta);
|
|
}
|
|
if (data.containsKey('token')) {
|
|
context.handle(
|
|
_tokenMeta,
|
|
token.isAcceptableOrUnknown(data['token']!, _tokenMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_tokenMeta);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {id};
|
|
@override
|
|
McpConfiguration map(Map<String, dynamic> data, {String? tablePrefix}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return McpConfiguration(
|
|
id: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}id'],
|
|
)!,
|
|
enabled: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.bool,
|
|
data['${effectivePrefix}enabled'],
|
|
)!,
|
|
port: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}port'],
|
|
)!,
|
|
token: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}token'],
|
|
)!,
|
|
);
|
|
}
|
|
|
|
@override
|
|
$McpConfigurationsTable createAlias(String alias) {
|
|
return $McpConfigurationsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class McpConfiguration extends DataClass
|
|
implements Insertable<McpConfiguration> {
|
|
final int id;
|
|
final bool enabled;
|
|
final int port;
|
|
final String token;
|
|
const McpConfiguration({
|
|
required this.id,
|
|
required this.enabled,
|
|
required this.port,
|
|
required this.token,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['id'] = Variable<int>(id);
|
|
map['enabled'] = Variable<bool>(enabled);
|
|
map['port'] = Variable<int>(port);
|
|
map['token'] = Variable<String>(token);
|
|
return map;
|
|
}
|
|
|
|
McpConfigurationsCompanion toCompanion(bool nullToAbsent) {
|
|
return McpConfigurationsCompanion(
|
|
id: Value(id),
|
|
enabled: Value(enabled),
|
|
port: Value(port),
|
|
token: Value(token),
|
|
);
|
|
}
|
|
|
|
factory McpConfiguration.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return McpConfiguration(
|
|
id: serializer.fromJson<int>(json['id']),
|
|
enabled: serializer.fromJson<bool>(json['enabled']),
|
|
port: serializer.fromJson<int>(json['port']),
|
|
token: serializer.fromJson<String>(json['token']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'id': serializer.toJson<int>(id),
|
|
'enabled': serializer.toJson<bool>(enabled),
|
|
'port': serializer.toJson<int>(port),
|
|
'token': serializer.toJson<String>(token),
|
|
};
|
|
}
|
|
|
|
McpConfiguration copyWith({
|
|
int? id,
|
|
bool? enabled,
|
|
int? port,
|
|
String? token,
|
|
}) => McpConfiguration(
|
|
id: id ?? this.id,
|
|
enabled: enabled ?? this.enabled,
|
|
port: port ?? this.port,
|
|
token: token ?? this.token,
|
|
);
|
|
McpConfiguration copyWithCompanion(McpConfigurationsCompanion data) {
|
|
return McpConfiguration(
|
|
id: data.id.present ? data.id.value : this.id,
|
|
enabled: data.enabled.present ? data.enabled.value : this.enabled,
|
|
port: data.port.present ? data.port.value : this.port,
|
|
token: data.token.present ? data.token.value : this.token,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('McpConfiguration(')
|
|
..write('id: $id, ')
|
|
..write('enabled: $enabled, ')
|
|
..write('port: $port, ')
|
|
..write('token: $token')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(id, enabled, port, token);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is McpConfiguration &&
|
|
other.id == this.id &&
|
|
other.enabled == this.enabled &&
|
|
other.port == this.port &&
|
|
other.token == this.token);
|
|
}
|
|
|
|
class McpConfigurationsCompanion extends UpdateCompanion<McpConfiguration> {
|
|
final Value<int> id;
|
|
final Value<bool> enabled;
|
|
final Value<int> port;
|
|
final Value<String> token;
|
|
const McpConfigurationsCompanion({
|
|
this.id = const Value.absent(),
|
|
this.enabled = const Value.absent(),
|
|
this.port = const Value.absent(),
|
|
this.token = const Value.absent(),
|
|
});
|
|
McpConfigurationsCompanion.insert({
|
|
this.id = const Value.absent(),
|
|
required bool enabled,
|
|
required int port,
|
|
required String token,
|
|
}) : enabled = Value(enabled),
|
|
port = Value(port),
|
|
token = Value(token);
|
|
static Insertable<McpConfiguration> custom({
|
|
Expression<int>? id,
|
|
Expression<bool>? enabled,
|
|
Expression<int>? port,
|
|
Expression<String>? token,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (id != null) 'id': id,
|
|
if (enabled != null) 'enabled': enabled,
|
|
if (port != null) 'port': port,
|
|
if (token != null) 'token': token,
|
|
});
|
|
}
|
|
|
|
McpConfigurationsCompanion copyWith({
|
|
Value<int>? id,
|
|
Value<bool>? enabled,
|
|
Value<int>? port,
|
|
Value<String>? token,
|
|
}) {
|
|
return McpConfigurationsCompanion(
|
|
id: id ?? this.id,
|
|
enabled: enabled ?? this.enabled,
|
|
port: port ?? this.port,
|
|
token: token ?? this.token,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (id.present) {
|
|
map['id'] = Variable<int>(id.value);
|
|
}
|
|
if (enabled.present) {
|
|
map['enabled'] = Variable<bool>(enabled.value);
|
|
}
|
|
if (port.present) {
|
|
map['port'] = Variable<int>(port.value);
|
|
}
|
|
if (token.present) {
|
|
map['token'] = Variable<String>(token.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('McpConfigurationsCompanion(')
|
|
..write('id: $id, ')
|
|
..write('enabled: $enabled, ')
|
|
..write('port: $port, ')
|
|
..write('token: $token')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $AppearanceConfigurationsTable extends AppearanceConfigurations
|
|
with TableInfo<$AppearanceConfigurationsTable, AppearanceConfiguration> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$AppearanceConfigurationsTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _idMeta = const VerificationMeta('id');
|
|
@override
|
|
late final GeneratedColumn<int> id = GeneratedColumn<int>(
|
|
'id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _themeModeMeta = const VerificationMeta(
|
|
'themeMode',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> themeMode = GeneratedColumn<String>(
|
|
'theme_mode',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _paletteMeta = const VerificationMeta(
|
|
'palette',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> palette = GeneratedColumn<String>(
|
|
'palette',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: false,
|
|
defaultValue: const Constant('graphite'),
|
|
);
|
|
static const VerificationMeta _timelineRulerLayoutMeta =
|
|
const VerificationMeta('timelineRulerLayout');
|
|
@override
|
|
late final GeneratedColumn<String> timelineRulerLayout =
|
|
GeneratedColumn<String>(
|
|
'timeline_ruler_layout',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: false,
|
|
defaultValue: const Constant('inline'),
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [
|
|
id,
|
|
themeMode,
|
|
palette,
|
|
timelineRulerLayout,
|
|
];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'appearance_configurations';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<AppearanceConfiguration> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('id')) {
|
|
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
|
|
}
|
|
if (data.containsKey('theme_mode')) {
|
|
context.handle(
|
|
_themeModeMeta,
|
|
themeMode.isAcceptableOrUnknown(data['theme_mode']!, _themeModeMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_themeModeMeta);
|
|
}
|
|
if (data.containsKey('palette')) {
|
|
context.handle(
|
|
_paletteMeta,
|
|
palette.isAcceptableOrUnknown(data['palette']!, _paletteMeta),
|
|
);
|
|
}
|
|
if (data.containsKey('timeline_ruler_layout')) {
|
|
context.handle(
|
|
_timelineRulerLayoutMeta,
|
|
timelineRulerLayout.isAcceptableOrUnknown(
|
|
data['timeline_ruler_layout']!,
|
|
_timelineRulerLayoutMeta,
|
|
),
|
|
);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {id};
|
|
@override
|
|
AppearanceConfiguration map(
|
|
Map<String, dynamic> data, {
|
|
String? tablePrefix,
|
|
}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return AppearanceConfiguration(
|
|
id: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}id'],
|
|
)!,
|
|
themeMode: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}theme_mode'],
|
|
)!,
|
|
palette: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}palette'],
|
|
)!,
|
|
timelineRulerLayout: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}timeline_ruler_layout'],
|
|
)!,
|
|
);
|
|
}
|
|
|
|
@override
|
|
$AppearanceConfigurationsTable createAlias(String alias) {
|
|
return $AppearanceConfigurationsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class AppearanceConfiguration extends DataClass
|
|
implements Insertable<AppearanceConfiguration> {
|
|
final int id;
|
|
final String themeMode;
|
|
final String palette;
|
|
final String timelineRulerLayout;
|
|
const AppearanceConfiguration({
|
|
required this.id,
|
|
required this.themeMode,
|
|
required this.palette,
|
|
required this.timelineRulerLayout,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['id'] = Variable<int>(id);
|
|
map['theme_mode'] = Variable<String>(themeMode);
|
|
map['palette'] = Variable<String>(palette);
|
|
map['timeline_ruler_layout'] = Variable<String>(timelineRulerLayout);
|
|
return map;
|
|
}
|
|
|
|
AppearanceConfigurationsCompanion toCompanion(bool nullToAbsent) {
|
|
return AppearanceConfigurationsCompanion(
|
|
id: Value(id),
|
|
themeMode: Value(themeMode),
|
|
palette: Value(palette),
|
|
timelineRulerLayout: Value(timelineRulerLayout),
|
|
);
|
|
}
|
|
|
|
factory AppearanceConfiguration.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return AppearanceConfiguration(
|
|
id: serializer.fromJson<int>(json['id']),
|
|
themeMode: serializer.fromJson<String>(json['themeMode']),
|
|
palette: serializer.fromJson<String>(json['palette']),
|
|
timelineRulerLayout: serializer.fromJson<String>(
|
|
json['timelineRulerLayout'],
|
|
),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'id': serializer.toJson<int>(id),
|
|
'themeMode': serializer.toJson<String>(themeMode),
|
|
'palette': serializer.toJson<String>(palette),
|
|
'timelineRulerLayout': serializer.toJson<String>(timelineRulerLayout),
|
|
};
|
|
}
|
|
|
|
AppearanceConfiguration copyWith({
|
|
int? id,
|
|
String? themeMode,
|
|
String? palette,
|
|
String? timelineRulerLayout,
|
|
}) => AppearanceConfiguration(
|
|
id: id ?? this.id,
|
|
themeMode: themeMode ?? this.themeMode,
|
|
palette: palette ?? this.palette,
|
|
timelineRulerLayout: timelineRulerLayout ?? this.timelineRulerLayout,
|
|
);
|
|
AppearanceConfiguration copyWithCompanion(
|
|
AppearanceConfigurationsCompanion data,
|
|
) {
|
|
return AppearanceConfiguration(
|
|
id: data.id.present ? data.id.value : this.id,
|
|
themeMode: data.themeMode.present ? data.themeMode.value : this.themeMode,
|
|
palette: data.palette.present ? data.palette.value : this.palette,
|
|
timelineRulerLayout: data.timelineRulerLayout.present
|
|
? data.timelineRulerLayout.value
|
|
: this.timelineRulerLayout,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('AppearanceConfiguration(')
|
|
..write('id: $id, ')
|
|
..write('themeMode: $themeMode, ')
|
|
..write('palette: $palette, ')
|
|
..write('timelineRulerLayout: $timelineRulerLayout')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(id, themeMode, palette, timelineRulerLayout);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is AppearanceConfiguration &&
|
|
other.id == this.id &&
|
|
other.themeMode == this.themeMode &&
|
|
other.palette == this.palette &&
|
|
other.timelineRulerLayout == this.timelineRulerLayout);
|
|
}
|
|
|
|
class AppearanceConfigurationsCompanion
|
|
extends UpdateCompanion<AppearanceConfiguration> {
|
|
final Value<int> id;
|
|
final Value<String> themeMode;
|
|
final Value<String> palette;
|
|
final Value<String> timelineRulerLayout;
|
|
const AppearanceConfigurationsCompanion({
|
|
this.id = const Value.absent(),
|
|
this.themeMode = const Value.absent(),
|
|
this.palette = const Value.absent(),
|
|
this.timelineRulerLayout = const Value.absent(),
|
|
});
|
|
AppearanceConfigurationsCompanion.insert({
|
|
this.id = const Value.absent(),
|
|
required String themeMode,
|
|
this.palette = const Value.absent(),
|
|
this.timelineRulerLayout = const Value.absent(),
|
|
}) : themeMode = Value(themeMode);
|
|
static Insertable<AppearanceConfiguration> custom({
|
|
Expression<int>? id,
|
|
Expression<String>? themeMode,
|
|
Expression<String>? palette,
|
|
Expression<String>? timelineRulerLayout,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (id != null) 'id': id,
|
|
if (themeMode != null) 'theme_mode': themeMode,
|
|
if (palette != null) 'palette': palette,
|
|
if (timelineRulerLayout != null)
|
|
'timeline_ruler_layout': timelineRulerLayout,
|
|
});
|
|
}
|
|
|
|
AppearanceConfigurationsCompanion copyWith({
|
|
Value<int>? id,
|
|
Value<String>? themeMode,
|
|
Value<String>? palette,
|
|
Value<String>? timelineRulerLayout,
|
|
}) {
|
|
return AppearanceConfigurationsCompanion(
|
|
id: id ?? this.id,
|
|
themeMode: themeMode ?? this.themeMode,
|
|
palette: palette ?? this.palette,
|
|
timelineRulerLayout: timelineRulerLayout ?? this.timelineRulerLayout,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (id.present) {
|
|
map['id'] = Variable<int>(id.value);
|
|
}
|
|
if (themeMode.present) {
|
|
map['theme_mode'] = Variable<String>(themeMode.value);
|
|
}
|
|
if (palette.present) {
|
|
map['palette'] = Variable<String>(palette.value);
|
|
}
|
|
if (timelineRulerLayout.present) {
|
|
map['timeline_ruler_layout'] = Variable<String>(
|
|
timelineRulerLayout.value,
|
|
);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('AppearanceConfigurationsCompanion(')
|
|
..write('id: $id, ')
|
|
..write('themeMode: $themeMode, ')
|
|
..write('palette: $palette, ')
|
|
..write('timelineRulerLayout: $timelineRulerLayout')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $LanguageConfigurationsTable extends LanguageConfigurations
|
|
with TableInfo<$LanguageConfigurationsTable, LanguageConfiguration> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$LanguageConfigurationsTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _idMeta = const VerificationMeta('id');
|
|
@override
|
|
late final GeneratedColumn<int> id = GeneratedColumn<int>(
|
|
'id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _languageMeta = const VerificationMeta(
|
|
'language',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> language = GeneratedColumn<String>(
|
|
'language',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [id, language];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'language_configurations';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<LanguageConfiguration> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('id')) {
|
|
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
|
|
}
|
|
if (data.containsKey('language')) {
|
|
context.handle(
|
|
_languageMeta,
|
|
language.isAcceptableOrUnknown(data['language']!, _languageMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_languageMeta);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {id};
|
|
@override
|
|
LanguageConfiguration map(Map<String, dynamic> data, {String? tablePrefix}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return LanguageConfiguration(
|
|
id: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}id'],
|
|
)!,
|
|
language: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}language'],
|
|
)!,
|
|
);
|
|
}
|
|
|
|
@override
|
|
$LanguageConfigurationsTable createAlias(String alias) {
|
|
return $LanguageConfigurationsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class LanguageConfiguration extends DataClass
|
|
implements Insertable<LanguageConfiguration> {
|
|
final int id;
|
|
final String language;
|
|
const LanguageConfiguration({required this.id, required this.language});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['id'] = Variable<int>(id);
|
|
map['language'] = Variable<String>(language);
|
|
return map;
|
|
}
|
|
|
|
LanguageConfigurationsCompanion toCompanion(bool nullToAbsent) {
|
|
return LanguageConfigurationsCompanion(
|
|
id: Value(id),
|
|
language: Value(language),
|
|
);
|
|
}
|
|
|
|
factory LanguageConfiguration.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return LanguageConfiguration(
|
|
id: serializer.fromJson<int>(json['id']),
|
|
language: serializer.fromJson<String>(json['language']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'id': serializer.toJson<int>(id),
|
|
'language': serializer.toJson<String>(language),
|
|
};
|
|
}
|
|
|
|
LanguageConfiguration copyWith({int? id, String? language}) =>
|
|
LanguageConfiguration(
|
|
id: id ?? this.id,
|
|
language: language ?? this.language,
|
|
);
|
|
LanguageConfiguration copyWithCompanion(
|
|
LanguageConfigurationsCompanion data,
|
|
) {
|
|
return LanguageConfiguration(
|
|
id: data.id.present ? data.id.value : this.id,
|
|
language: data.language.present ? data.language.value : this.language,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('LanguageConfiguration(')
|
|
..write('id: $id, ')
|
|
..write('language: $language')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(id, language);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is LanguageConfiguration &&
|
|
other.id == this.id &&
|
|
other.language == this.language);
|
|
}
|
|
|
|
class LanguageConfigurationsCompanion
|
|
extends UpdateCompanion<LanguageConfiguration> {
|
|
final Value<int> id;
|
|
final Value<String> language;
|
|
const LanguageConfigurationsCompanion({
|
|
this.id = const Value.absent(),
|
|
this.language = const Value.absent(),
|
|
});
|
|
LanguageConfigurationsCompanion.insert({
|
|
this.id = const Value.absent(),
|
|
required String language,
|
|
}) : language = Value(language);
|
|
static Insertable<LanguageConfiguration> custom({
|
|
Expression<int>? id,
|
|
Expression<String>? language,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (id != null) 'id': id,
|
|
if (language != null) 'language': language,
|
|
});
|
|
}
|
|
|
|
LanguageConfigurationsCompanion copyWith({
|
|
Value<int>? id,
|
|
Value<String>? language,
|
|
}) {
|
|
return LanguageConfigurationsCompanion(
|
|
id: id ?? this.id,
|
|
language: language ?? this.language,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (id.present) {
|
|
map['id'] = Variable<int>(id.value);
|
|
}
|
|
if (language.present) {
|
|
map['language'] = Variable<String>(language.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('LanguageConfigurationsCompanion(')
|
|
..write('id: $id, ')
|
|
..write('language: $language')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $ConversationLocationConfigurationsTable
|
|
extends ConversationLocationConfigurations
|
|
with
|
|
TableInfo<
|
|
$ConversationLocationConfigurationsTable,
|
|
ConversationLocationConfiguration
|
|
> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$ConversationLocationConfigurationsTable(
|
|
this.attachedDatabase, [
|
|
this._alias,
|
|
]);
|
|
static const VerificationMeta _idMeta = const VerificationMeta('id');
|
|
@override
|
|
late final GeneratedColumn<int> id = GeneratedColumn<int>(
|
|
'id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _directoryMeta = const VerificationMeta(
|
|
'directory',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> directory = GeneratedColumn<String>(
|
|
'directory',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [id, directory];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'conversation_location_configurations';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<ConversationLocationConfiguration> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('id')) {
|
|
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
|
|
}
|
|
if (data.containsKey('directory')) {
|
|
context.handle(
|
|
_directoryMeta,
|
|
directory.isAcceptableOrUnknown(data['directory']!, _directoryMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_directoryMeta);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {id};
|
|
@override
|
|
ConversationLocationConfiguration map(
|
|
Map<String, dynamic> data, {
|
|
String? tablePrefix,
|
|
}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return ConversationLocationConfiguration(
|
|
id: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}id'],
|
|
)!,
|
|
directory: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}directory'],
|
|
)!,
|
|
);
|
|
}
|
|
|
|
@override
|
|
$ConversationLocationConfigurationsTable createAlias(String alias) {
|
|
return $ConversationLocationConfigurationsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class ConversationLocationConfiguration extends DataClass
|
|
implements Insertable<ConversationLocationConfiguration> {
|
|
final int id;
|
|
final String directory;
|
|
const ConversationLocationConfiguration({
|
|
required this.id,
|
|
required this.directory,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['id'] = Variable<int>(id);
|
|
map['directory'] = Variable<String>(directory);
|
|
return map;
|
|
}
|
|
|
|
ConversationLocationConfigurationsCompanion toCompanion(bool nullToAbsent) {
|
|
return ConversationLocationConfigurationsCompanion(
|
|
id: Value(id),
|
|
directory: Value(directory),
|
|
);
|
|
}
|
|
|
|
factory ConversationLocationConfiguration.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return ConversationLocationConfiguration(
|
|
id: serializer.fromJson<int>(json['id']),
|
|
directory: serializer.fromJson<String>(json['directory']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'id': serializer.toJson<int>(id),
|
|
'directory': serializer.toJson<String>(directory),
|
|
};
|
|
}
|
|
|
|
ConversationLocationConfiguration copyWith({int? id, String? directory}) =>
|
|
ConversationLocationConfiguration(
|
|
id: id ?? this.id,
|
|
directory: directory ?? this.directory,
|
|
);
|
|
ConversationLocationConfiguration copyWithCompanion(
|
|
ConversationLocationConfigurationsCompanion data,
|
|
) {
|
|
return ConversationLocationConfiguration(
|
|
id: data.id.present ? data.id.value : this.id,
|
|
directory: data.directory.present ? data.directory.value : this.directory,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('ConversationLocationConfiguration(')
|
|
..write('id: $id, ')
|
|
..write('directory: $directory')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(id, directory);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is ConversationLocationConfiguration &&
|
|
other.id == this.id &&
|
|
other.directory == this.directory);
|
|
}
|
|
|
|
class ConversationLocationConfigurationsCompanion
|
|
extends UpdateCompanion<ConversationLocationConfiguration> {
|
|
final Value<int> id;
|
|
final Value<String> directory;
|
|
const ConversationLocationConfigurationsCompanion({
|
|
this.id = const Value.absent(),
|
|
this.directory = const Value.absent(),
|
|
});
|
|
ConversationLocationConfigurationsCompanion.insert({
|
|
this.id = const Value.absent(),
|
|
required String directory,
|
|
}) : directory = Value(directory);
|
|
static Insertable<ConversationLocationConfiguration> custom({
|
|
Expression<int>? id,
|
|
Expression<String>? directory,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (id != null) 'id': id,
|
|
if (directory != null) 'directory': directory,
|
|
});
|
|
}
|
|
|
|
ConversationLocationConfigurationsCompanion copyWith({
|
|
Value<int>? id,
|
|
Value<String>? directory,
|
|
}) {
|
|
return ConversationLocationConfigurationsCompanion(
|
|
id: id ?? this.id,
|
|
directory: directory ?? this.directory,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (id.present) {
|
|
map['id'] = Variable<int>(id.value);
|
|
}
|
|
if (directory.present) {
|
|
map['directory'] = Variable<String>(directory.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('ConversationLocationConfigurationsCompanion(')
|
|
..write('id: $id, ')
|
|
..write('directory: $directory')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $ProjectLocationConfigurationsTable extends ProjectLocationConfigurations
|
|
with
|
|
TableInfo<
|
|
$ProjectLocationConfigurationsTable,
|
|
ProjectLocationConfiguration
|
|
> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$ProjectLocationConfigurationsTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _idMeta = const VerificationMeta('id');
|
|
@override
|
|
late final GeneratedColumn<int> id = GeneratedColumn<int>(
|
|
'id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _directoryMeta = const VerificationMeta(
|
|
'directory',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> directory = GeneratedColumn<String>(
|
|
'directory',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [id, directory];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'project_location_configurations';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<ProjectLocationConfiguration> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('id')) {
|
|
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
|
|
}
|
|
if (data.containsKey('directory')) {
|
|
context.handle(
|
|
_directoryMeta,
|
|
directory.isAcceptableOrUnknown(data['directory']!, _directoryMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_directoryMeta);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {id};
|
|
@override
|
|
ProjectLocationConfiguration map(
|
|
Map<String, dynamic> data, {
|
|
String? tablePrefix,
|
|
}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return ProjectLocationConfiguration(
|
|
id: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}id'],
|
|
)!,
|
|
directory: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}directory'],
|
|
)!,
|
|
);
|
|
}
|
|
|
|
@override
|
|
$ProjectLocationConfigurationsTable createAlias(String alias) {
|
|
return $ProjectLocationConfigurationsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class ProjectLocationConfiguration extends DataClass
|
|
implements Insertable<ProjectLocationConfiguration> {
|
|
final int id;
|
|
final String directory;
|
|
const ProjectLocationConfiguration({
|
|
required this.id,
|
|
required this.directory,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['id'] = Variable<int>(id);
|
|
map['directory'] = Variable<String>(directory);
|
|
return map;
|
|
}
|
|
|
|
ProjectLocationConfigurationsCompanion toCompanion(bool nullToAbsent) {
|
|
return ProjectLocationConfigurationsCompanion(
|
|
id: Value(id),
|
|
directory: Value(directory),
|
|
);
|
|
}
|
|
|
|
factory ProjectLocationConfiguration.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return ProjectLocationConfiguration(
|
|
id: serializer.fromJson<int>(json['id']),
|
|
directory: serializer.fromJson<String>(json['directory']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'id': serializer.toJson<int>(id),
|
|
'directory': serializer.toJson<String>(directory),
|
|
};
|
|
}
|
|
|
|
ProjectLocationConfiguration copyWith({int? id, String? directory}) =>
|
|
ProjectLocationConfiguration(
|
|
id: id ?? this.id,
|
|
directory: directory ?? this.directory,
|
|
);
|
|
ProjectLocationConfiguration copyWithCompanion(
|
|
ProjectLocationConfigurationsCompanion data,
|
|
) {
|
|
return ProjectLocationConfiguration(
|
|
id: data.id.present ? data.id.value : this.id,
|
|
directory: data.directory.present ? data.directory.value : this.directory,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('ProjectLocationConfiguration(')
|
|
..write('id: $id, ')
|
|
..write('directory: $directory')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(id, directory);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is ProjectLocationConfiguration &&
|
|
other.id == this.id &&
|
|
other.directory == this.directory);
|
|
}
|
|
|
|
class ProjectLocationConfigurationsCompanion
|
|
extends UpdateCompanion<ProjectLocationConfiguration> {
|
|
final Value<int> id;
|
|
final Value<String> directory;
|
|
const ProjectLocationConfigurationsCompanion({
|
|
this.id = const Value.absent(),
|
|
this.directory = const Value.absent(),
|
|
});
|
|
ProjectLocationConfigurationsCompanion.insert({
|
|
this.id = const Value.absent(),
|
|
required String directory,
|
|
}) : directory = Value(directory);
|
|
static Insertable<ProjectLocationConfiguration> custom({
|
|
Expression<int>? id,
|
|
Expression<String>? directory,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (id != null) 'id': id,
|
|
if (directory != null) 'directory': directory,
|
|
});
|
|
}
|
|
|
|
ProjectLocationConfigurationsCompanion copyWith({
|
|
Value<int>? id,
|
|
Value<String>? directory,
|
|
}) {
|
|
return ProjectLocationConfigurationsCompanion(
|
|
id: id ?? this.id,
|
|
directory: directory ?? this.directory,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (id.present) {
|
|
map['id'] = Variable<int>(id.value);
|
|
}
|
|
if (directory.present) {
|
|
map['directory'] = Variable<String>(directory.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('ProjectLocationConfigurationsCompanion(')
|
|
..write('id: $id, ')
|
|
..write('directory: $directory')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $ResourceLocationConfigurationsTable
|
|
extends ResourceLocationConfigurations
|
|
with
|
|
TableInfo<
|
|
$ResourceLocationConfigurationsTable,
|
|
ResourceLocationConfiguration
|
|
> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$ResourceLocationConfigurationsTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _idMeta = const VerificationMeta('id');
|
|
@override
|
|
late final GeneratedColumn<int> id = GeneratedColumn<int>(
|
|
'id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _directoryMeta = const VerificationMeta(
|
|
'directory',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> directory = GeneratedColumn<String>(
|
|
'directory',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [id, directory];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'resource_location_configurations';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<ResourceLocationConfiguration> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('id')) {
|
|
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
|
|
}
|
|
if (data.containsKey('directory')) {
|
|
context.handle(
|
|
_directoryMeta,
|
|
directory.isAcceptableOrUnknown(data['directory']!, _directoryMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_directoryMeta);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {id};
|
|
@override
|
|
ResourceLocationConfiguration map(
|
|
Map<String, dynamic> data, {
|
|
String? tablePrefix,
|
|
}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return ResourceLocationConfiguration(
|
|
id: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}id'],
|
|
)!,
|
|
directory: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}directory'],
|
|
)!,
|
|
);
|
|
}
|
|
|
|
@override
|
|
$ResourceLocationConfigurationsTable createAlias(String alias) {
|
|
return $ResourceLocationConfigurationsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class ResourceLocationConfiguration extends DataClass
|
|
implements Insertable<ResourceLocationConfiguration> {
|
|
final int id;
|
|
final String directory;
|
|
const ResourceLocationConfiguration({
|
|
required this.id,
|
|
required this.directory,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['id'] = Variable<int>(id);
|
|
map['directory'] = Variable<String>(directory);
|
|
return map;
|
|
}
|
|
|
|
ResourceLocationConfigurationsCompanion toCompanion(bool nullToAbsent) {
|
|
return ResourceLocationConfigurationsCompanion(
|
|
id: Value(id),
|
|
directory: Value(directory),
|
|
);
|
|
}
|
|
|
|
factory ResourceLocationConfiguration.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return ResourceLocationConfiguration(
|
|
id: serializer.fromJson<int>(json['id']),
|
|
directory: serializer.fromJson<String>(json['directory']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'id': serializer.toJson<int>(id),
|
|
'directory': serializer.toJson<String>(directory),
|
|
};
|
|
}
|
|
|
|
ResourceLocationConfiguration copyWith({int? id, String? directory}) =>
|
|
ResourceLocationConfiguration(
|
|
id: id ?? this.id,
|
|
directory: directory ?? this.directory,
|
|
);
|
|
ResourceLocationConfiguration copyWithCompanion(
|
|
ResourceLocationConfigurationsCompanion data,
|
|
) {
|
|
return ResourceLocationConfiguration(
|
|
id: data.id.present ? data.id.value : this.id,
|
|
directory: data.directory.present ? data.directory.value : this.directory,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('ResourceLocationConfiguration(')
|
|
..write('id: $id, ')
|
|
..write('directory: $directory')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(id, directory);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is ResourceLocationConfiguration &&
|
|
other.id == this.id &&
|
|
other.directory == this.directory);
|
|
}
|
|
|
|
class ResourceLocationConfigurationsCompanion
|
|
extends UpdateCompanion<ResourceLocationConfiguration> {
|
|
final Value<int> id;
|
|
final Value<String> directory;
|
|
const ResourceLocationConfigurationsCompanion({
|
|
this.id = const Value.absent(),
|
|
this.directory = const Value.absent(),
|
|
});
|
|
ResourceLocationConfigurationsCompanion.insert({
|
|
this.id = const Value.absent(),
|
|
required String directory,
|
|
}) : directory = Value(directory);
|
|
static Insertable<ResourceLocationConfiguration> custom({
|
|
Expression<int>? id,
|
|
Expression<String>? directory,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (id != null) 'id': id,
|
|
if (directory != null) 'directory': directory,
|
|
});
|
|
}
|
|
|
|
ResourceLocationConfigurationsCompanion copyWith({
|
|
Value<int>? id,
|
|
Value<String>? directory,
|
|
}) {
|
|
return ResourceLocationConfigurationsCompanion(
|
|
id: id ?? this.id,
|
|
directory: directory ?? this.directory,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (id.present) {
|
|
map['id'] = Variable<int>(id.value);
|
|
}
|
|
if (directory.present) {
|
|
map['directory'] = Variable<String>(directory.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('ResourceLocationConfigurationsCompanion(')
|
|
..write('id: $id, ')
|
|
..write('directory: $directory')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $AgentConfigurationsTable extends AgentConfigurations
|
|
with TableInfo<$AgentConfigurationsTable, AgentConfiguration> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$AgentConfigurationsTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _idMeta = const VerificationMeta('id');
|
|
@override
|
|
late final GeneratedColumn<int> id = GeneratedColumn<int>(
|
|
'id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _enabledMeta = const VerificationMeta(
|
|
'enabled',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<bool> enabled = GeneratedColumn<bool>(
|
|
'enabled',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.bool,
|
|
requiredDuringInsert: true,
|
|
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
|
'CHECK ("enabled" IN (0, 1))',
|
|
),
|
|
);
|
|
static const VerificationMeta _selectedProviderIdMeta =
|
|
const VerificationMeta('selectedProviderId');
|
|
@override
|
|
late final GeneratedColumn<String> selectedProviderId =
|
|
GeneratedColumn<String>(
|
|
'selected_provider_id',
|
|
aliasedName,
|
|
true,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _selectedModelIdMeta = const VerificationMeta(
|
|
'selectedModelId',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> selectedModelId = GeneratedColumn<String>(
|
|
'selected_model_id',
|
|
aliasedName,
|
|
true,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _revisionMeta = const VerificationMeta(
|
|
'revision',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<int> revision = GeneratedColumn<int>(
|
|
'revision',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: true,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [
|
|
id,
|
|
enabled,
|
|
selectedProviderId,
|
|
selectedModelId,
|
|
revision,
|
|
];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'agent_configurations';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<AgentConfiguration> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('id')) {
|
|
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
|
|
}
|
|
if (data.containsKey('enabled')) {
|
|
context.handle(
|
|
_enabledMeta,
|
|
enabled.isAcceptableOrUnknown(data['enabled']!, _enabledMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_enabledMeta);
|
|
}
|
|
if (data.containsKey('selected_provider_id')) {
|
|
context.handle(
|
|
_selectedProviderIdMeta,
|
|
selectedProviderId.isAcceptableOrUnknown(
|
|
data['selected_provider_id']!,
|
|
_selectedProviderIdMeta,
|
|
),
|
|
);
|
|
}
|
|
if (data.containsKey('selected_model_id')) {
|
|
context.handle(
|
|
_selectedModelIdMeta,
|
|
selectedModelId.isAcceptableOrUnknown(
|
|
data['selected_model_id']!,
|
|
_selectedModelIdMeta,
|
|
),
|
|
);
|
|
}
|
|
if (data.containsKey('revision')) {
|
|
context.handle(
|
|
_revisionMeta,
|
|
revision.isAcceptableOrUnknown(data['revision']!, _revisionMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_revisionMeta);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {id};
|
|
@override
|
|
AgentConfiguration map(Map<String, dynamic> data, {String? tablePrefix}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return AgentConfiguration(
|
|
id: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}id'],
|
|
)!,
|
|
enabled: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.bool,
|
|
data['${effectivePrefix}enabled'],
|
|
)!,
|
|
selectedProviderId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}selected_provider_id'],
|
|
),
|
|
selectedModelId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}selected_model_id'],
|
|
),
|
|
revision: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}revision'],
|
|
)!,
|
|
);
|
|
}
|
|
|
|
@override
|
|
$AgentConfigurationsTable createAlias(String alias) {
|
|
return $AgentConfigurationsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class AgentConfiguration extends DataClass
|
|
implements Insertable<AgentConfiguration> {
|
|
final int id;
|
|
final bool enabled;
|
|
final String? selectedProviderId;
|
|
final String? selectedModelId;
|
|
final int revision;
|
|
const AgentConfiguration({
|
|
required this.id,
|
|
required this.enabled,
|
|
this.selectedProviderId,
|
|
this.selectedModelId,
|
|
required this.revision,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['id'] = Variable<int>(id);
|
|
map['enabled'] = Variable<bool>(enabled);
|
|
if (!nullToAbsent || selectedProviderId != null) {
|
|
map['selected_provider_id'] = Variable<String>(selectedProviderId);
|
|
}
|
|
if (!nullToAbsent || selectedModelId != null) {
|
|
map['selected_model_id'] = Variable<String>(selectedModelId);
|
|
}
|
|
map['revision'] = Variable<int>(revision);
|
|
return map;
|
|
}
|
|
|
|
AgentConfigurationsCompanion toCompanion(bool nullToAbsent) {
|
|
return AgentConfigurationsCompanion(
|
|
id: Value(id),
|
|
enabled: Value(enabled),
|
|
selectedProviderId: selectedProviderId == null && nullToAbsent
|
|
? const Value.absent()
|
|
: Value(selectedProviderId),
|
|
selectedModelId: selectedModelId == null && nullToAbsent
|
|
? const Value.absent()
|
|
: Value(selectedModelId),
|
|
revision: Value(revision),
|
|
);
|
|
}
|
|
|
|
factory AgentConfiguration.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return AgentConfiguration(
|
|
id: serializer.fromJson<int>(json['id']),
|
|
enabled: serializer.fromJson<bool>(json['enabled']),
|
|
selectedProviderId: serializer.fromJson<String?>(
|
|
json['selectedProviderId'],
|
|
),
|
|
selectedModelId: serializer.fromJson<String?>(json['selectedModelId']),
|
|
revision: serializer.fromJson<int>(json['revision']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'id': serializer.toJson<int>(id),
|
|
'enabled': serializer.toJson<bool>(enabled),
|
|
'selectedProviderId': serializer.toJson<String?>(selectedProviderId),
|
|
'selectedModelId': serializer.toJson<String?>(selectedModelId),
|
|
'revision': serializer.toJson<int>(revision),
|
|
};
|
|
}
|
|
|
|
AgentConfiguration copyWith({
|
|
int? id,
|
|
bool? enabled,
|
|
Value<String?> selectedProviderId = const Value.absent(),
|
|
Value<String?> selectedModelId = const Value.absent(),
|
|
int? revision,
|
|
}) => AgentConfiguration(
|
|
id: id ?? this.id,
|
|
enabled: enabled ?? this.enabled,
|
|
selectedProviderId: selectedProviderId.present
|
|
? selectedProviderId.value
|
|
: this.selectedProviderId,
|
|
selectedModelId: selectedModelId.present
|
|
? selectedModelId.value
|
|
: this.selectedModelId,
|
|
revision: revision ?? this.revision,
|
|
);
|
|
AgentConfiguration copyWithCompanion(AgentConfigurationsCompanion data) {
|
|
return AgentConfiguration(
|
|
id: data.id.present ? data.id.value : this.id,
|
|
enabled: data.enabled.present ? data.enabled.value : this.enabled,
|
|
selectedProviderId: data.selectedProviderId.present
|
|
? data.selectedProviderId.value
|
|
: this.selectedProviderId,
|
|
selectedModelId: data.selectedModelId.present
|
|
? data.selectedModelId.value
|
|
: this.selectedModelId,
|
|
revision: data.revision.present ? data.revision.value : this.revision,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('AgentConfiguration(')
|
|
..write('id: $id, ')
|
|
..write('enabled: $enabled, ')
|
|
..write('selectedProviderId: $selectedProviderId, ')
|
|
..write('selectedModelId: $selectedModelId, ')
|
|
..write('revision: $revision')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(id, enabled, selectedProviderId, selectedModelId, revision);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is AgentConfiguration &&
|
|
other.id == this.id &&
|
|
other.enabled == this.enabled &&
|
|
other.selectedProviderId == this.selectedProviderId &&
|
|
other.selectedModelId == this.selectedModelId &&
|
|
other.revision == this.revision);
|
|
}
|
|
|
|
class AgentConfigurationsCompanion extends UpdateCompanion<AgentConfiguration> {
|
|
final Value<int> id;
|
|
final Value<bool> enabled;
|
|
final Value<String?> selectedProviderId;
|
|
final Value<String?> selectedModelId;
|
|
final Value<int> revision;
|
|
const AgentConfigurationsCompanion({
|
|
this.id = const Value.absent(),
|
|
this.enabled = const Value.absent(),
|
|
this.selectedProviderId = const Value.absent(),
|
|
this.selectedModelId = const Value.absent(),
|
|
this.revision = const Value.absent(),
|
|
});
|
|
AgentConfigurationsCompanion.insert({
|
|
this.id = const Value.absent(),
|
|
required bool enabled,
|
|
this.selectedProviderId = const Value.absent(),
|
|
this.selectedModelId = const Value.absent(),
|
|
required int revision,
|
|
}) : enabled = Value(enabled),
|
|
revision = Value(revision);
|
|
static Insertable<AgentConfiguration> custom({
|
|
Expression<int>? id,
|
|
Expression<bool>? enabled,
|
|
Expression<String>? selectedProviderId,
|
|
Expression<String>? selectedModelId,
|
|
Expression<int>? revision,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (id != null) 'id': id,
|
|
if (enabled != null) 'enabled': enabled,
|
|
if (selectedProviderId != null)
|
|
'selected_provider_id': selectedProviderId,
|
|
if (selectedModelId != null) 'selected_model_id': selectedModelId,
|
|
if (revision != null) 'revision': revision,
|
|
});
|
|
}
|
|
|
|
AgentConfigurationsCompanion copyWith({
|
|
Value<int>? id,
|
|
Value<bool>? enabled,
|
|
Value<String?>? selectedProviderId,
|
|
Value<String?>? selectedModelId,
|
|
Value<int>? revision,
|
|
}) {
|
|
return AgentConfigurationsCompanion(
|
|
id: id ?? this.id,
|
|
enabled: enabled ?? this.enabled,
|
|
selectedProviderId: selectedProviderId ?? this.selectedProviderId,
|
|
selectedModelId: selectedModelId ?? this.selectedModelId,
|
|
revision: revision ?? this.revision,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (id.present) {
|
|
map['id'] = Variable<int>(id.value);
|
|
}
|
|
if (enabled.present) {
|
|
map['enabled'] = Variable<bool>(enabled.value);
|
|
}
|
|
if (selectedProviderId.present) {
|
|
map['selected_provider_id'] = Variable<String>(selectedProviderId.value);
|
|
}
|
|
if (selectedModelId.present) {
|
|
map['selected_model_id'] = Variable<String>(selectedModelId.value);
|
|
}
|
|
if (revision.present) {
|
|
map['revision'] = Variable<int>(revision.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('AgentConfigurationsCompanion(')
|
|
..write('id: $id, ')
|
|
..write('enabled: $enabled, ')
|
|
..write('selectedProviderId: $selectedProviderId, ')
|
|
..write('selectedModelId: $selectedModelId, ')
|
|
..write('revision: $revision')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $AgentProvidersTable extends AgentProviders
|
|
with TableInfo<$AgentProvidersTable, AgentProvider> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$AgentProvidersTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _enabledMeta = const VerificationMeta(
|
|
'enabled',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<bool> enabled = GeneratedColumn<bool>(
|
|
'enabled',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.bool,
|
|
requiredDuringInsert: false,
|
|
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
|
'CHECK ("enabled" IN (0, 1))',
|
|
),
|
|
defaultValue: const Constant(true),
|
|
);
|
|
static const VerificationMeta _idMeta = const VerificationMeta('id');
|
|
@override
|
|
late final GeneratedColumn<String> id = GeneratedColumn<String>(
|
|
'id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _nameMeta = const VerificationMeta('name');
|
|
@override
|
|
late final GeneratedColumn<String> name = GeneratedColumn<String>(
|
|
'name',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _apiTypeMeta = const VerificationMeta(
|
|
'apiType',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> apiType = GeneratedColumn<String>(
|
|
'api_type',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _baseUrlMeta = const VerificationMeta(
|
|
'baseUrl',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> baseUrl = GeneratedColumn<String>(
|
|
'base_url',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _credentialIdMeta = const VerificationMeta(
|
|
'credentialId',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> credentialId = GeneratedColumn<String>(
|
|
'credential_id',
|
|
aliasedName,
|
|
true,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: false,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [
|
|
enabled,
|
|
id,
|
|
name,
|
|
apiType,
|
|
baseUrl,
|
|
credentialId,
|
|
];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'agent_providers';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<AgentProvider> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('enabled')) {
|
|
context.handle(
|
|
_enabledMeta,
|
|
enabled.isAcceptableOrUnknown(data['enabled']!, _enabledMeta),
|
|
);
|
|
}
|
|
if (data.containsKey('id')) {
|
|
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
|
|
} else if (isInserting) {
|
|
context.missing(_idMeta);
|
|
}
|
|
if (data.containsKey('name')) {
|
|
context.handle(
|
|
_nameMeta,
|
|
name.isAcceptableOrUnknown(data['name']!, _nameMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_nameMeta);
|
|
}
|
|
if (data.containsKey('api_type')) {
|
|
context.handle(
|
|
_apiTypeMeta,
|
|
apiType.isAcceptableOrUnknown(data['api_type']!, _apiTypeMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_apiTypeMeta);
|
|
}
|
|
if (data.containsKey('base_url')) {
|
|
context.handle(
|
|
_baseUrlMeta,
|
|
baseUrl.isAcceptableOrUnknown(data['base_url']!, _baseUrlMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_baseUrlMeta);
|
|
}
|
|
if (data.containsKey('credential_id')) {
|
|
context.handle(
|
|
_credentialIdMeta,
|
|
credentialId.isAcceptableOrUnknown(
|
|
data['credential_id']!,
|
|
_credentialIdMeta,
|
|
),
|
|
);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {id};
|
|
@override
|
|
AgentProvider map(Map<String, dynamic> data, {String? tablePrefix}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return AgentProvider(
|
|
enabled: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.bool,
|
|
data['${effectivePrefix}enabled'],
|
|
)!,
|
|
id: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}id'],
|
|
)!,
|
|
name: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}name'],
|
|
)!,
|
|
apiType: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}api_type'],
|
|
)!,
|
|
baseUrl: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}base_url'],
|
|
)!,
|
|
credentialId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}credential_id'],
|
|
),
|
|
);
|
|
}
|
|
|
|
@override
|
|
$AgentProvidersTable createAlias(String alias) {
|
|
return $AgentProvidersTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class AgentProvider extends DataClass implements Insertable<AgentProvider> {
|
|
final bool enabled;
|
|
final String id;
|
|
final String name;
|
|
final String apiType;
|
|
final String baseUrl;
|
|
final String? credentialId;
|
|
const AgentProvider({
|
|
required this.enabled,
|
|
required this.id,
|
|
required this.name,
|
|
required this.apiType,
|
|
required this.baseUrl,
|
|
this.credentialId,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['enabled'] = Variable<bool>(enabled);
|
|
map['id'] = Variable<String>(id);
|
|
map['name'] = Variable<String>(name);
|
|
map['api_type'] = Variable<String>(apiType);
|
|
map['base_url'] = Variable<String>(baseUrl);
|
|
if (!nullToAbsent || credentialId != null) {
|
|
map['credential_id'] = Variable<String>(credentialId);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
AgentProvidersCompanion toCompanion(bool nullToAbsent) {
|
|
return AgentProvidersCompanion(
|
|
enabled: Value(enabled),
|
|
id: Value(id),
|
|
name: Value(name),
|
|
apiType: Value(apiType),
|
|
baseUrl: Value(baseUrl),
|
|
credentialId: credentialId == null && nullToAbsent
|
|
? const Value.absent()
|
|
: Value(credentialId),
|
|
);
|
|
}
|
|
|
|
factory AgentProvider.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return AgentProvider(
|
|
enabled: serializer.fromJson<bool>(json['enabled']),
|
|
id: serializer.fromJson<String>(json['id']),
|
|
name: serializer.fromJson<String>(json['name']),
|
|
apiType: serializer.fromJson<String>(json['apiType']),
|
|
baseUrl: serializer.fromJson<String>(json['baseUrl']),
|
|
credentialId: serializer.fromJson<String?>(json['credentialId']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'enabled': serializer.toJson<bool>(enabled),
|
|
'id': serializer.toJson<String>(id),
|
|
'name': serializer.toJson<String>(name),
|
|
'apiType': serializer.toJson<String>(apiType),
|
|
'baseUrl': serializer.toJson<String>(baseUrl),
|
|
'credentialId': serializer.toJson<String?>(credentialId),
|
|
};
|
|
}
|
|
|
|
AgentProvider copyWith({
|
|
bool? enabled,
|
|
String? id,
|
|
String? name,
|
|
String? apiType,
|
|
String? baseUrl,
|
|
Value<String?> credentialId = const Value.absent(),
|
|
}) => AgentProvider(
|
|
enabled: enabled ?? this.enabled,
|
|
id: id ?? this.id,
|
|
name: name ?? this.name,
|
|
apiType: apiType ?? this.apiType,
|
|
baseUrl: baseUrl ?? this.baseUrl,
|
|
credentialId: credentialId.present ? credentialId.value : this.credentialId,
|
|
);
|
|
AgentProvider copyWithCompanion(AgentProvidersCompanion data) {
|
|
return AgentProvider(
|
|
enabled: data.enabled.present ? data.enabled.value : this.enabled,
|
|
id: data.id.present ? data.id.value : this.id,
|
|
name: data.name.present ? data.name.value : this.name,
|
|
apiType: data.apiType.present ? data.apiType.value : this.apiType,
|
|
baseUrl: data.baseUrl.present ? data.baseUrl.value : this.baseUrl,
|
|
credentialId: data.credentialId.present
|
|
? data.credentialId.value
|
|
: this.credentialId,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('AgentProvider(')
|
|
..write('enabled: $enabled, ')
|
|
..write('id: $id, ')
|
|
..write('name: $name, ')
|
|
..write('apiType: $apiType, ')
|
|
..write('baseUrl: $baseUrl, ')
|
|
..write('credentialId: $credentialId')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(enabled, id, name, apiType, baseUrl, credentialId);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is AgentProvider &&
|
|
other.enabled == this.enabled &&
|
|
other.id == this.id &&
|
|
other.name == this.name &&
|
|
other.apiType == this.apiType &&
|
|
other.baseUrl == this.baseUrl &&
|
|
other.credentialId == this.credentialId);
|
|
}
|
|
|
|
class AgentProvidersCompanion extends UpdateCompanion<AgentProvider> {
|
|
final Value<bool> enabled;
|
|
final Value<String> id;
|
|
final Value<String> name;
|
|
final Value<String> apiType;
|
|
final Value<String> baseUrl;
|
|
final Value<String?> credentialId;
|
|
final Value<int> rowid;
|
|
const AgentProvidersCompanion({
|
|
this.enabled = const Value.absent(),
|
|
this.id = const Value.absent(),
|
|
this.name = const Value.absent(),
|
|
this.apiType = const Value.absent(),
|
|
this.baseUrl = const Value.absent(),
|
|
this.credentialId = const Value.absent(),
|
|
this.rowid = const Value.absent(),
|
|
});
|
|
AgentProvidersCompanion.insert({
|
|
this.enabled = const Value.absent(),
|
|
required String id,
|
|
required String name,
|
|
required String apiType,
|
|
required String baseUrl,
|
|
this.credentialId = const Value.absent(),
|
|
this.rowid = const Value.absent(),
|
|
}) : id = Value(id),
|
|
name = Value(name),
|
|
apiType = Value(apiType),
|
|
baseUrl = Value(baseUrl);
|
|
static Insertable<AgentProvider> custom({
|
|
Expression<bool>? enabled,
|
|
Expression<String>? id,
|
|
Expression<String>? name,
|
|
Expression<String>? apiType,
|
|
Expression<String>? baseUrl,
|
|
Expression<String>? credentialId,
|
|
Expression<int>? rowid,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (enabled != null) 'enabled': enabled,
|
|
if (id != null) 'id': id,
|
|
if (name != null) 'name': name,
|
|
if (apiType != null) 'api_type': apiType,
|
|
if (baseUrl != null) 'base_url': baseUrl,
|
|
if (credentialId != null) 'credential_id': credentialId,
|
|
if (rowid != null) 'rowid': rowid,
|
|
});
|
|
}
|
|
|
|
AgentProvidersCompanion copyWith({
|
|
Value<bool>? enabled,
|
|
Value<String>? id,
|
|
Value<String>? name,
|
|
Value<String>? apiType,
|
|
Value<String>? baseUrl,
|
|
Value<String?>? credentialId,
|
|
Value<int>? rowid,
|
|
}) {
|
|
return AgentProvidersCompanion(
|
|
enabled: enabled ?? this.enabled,
|
|
id: id ?? this.id,
|
|
name: name ?? this.name,
|
|
apiType: apiType ?? this.apiType,
|
|
baseUrl: baseUrl ?? this.baseUrl,
|
|
credentialId: credentialId ?? this.credentialId,
|
|
rowid: rowid ?? this.rowid,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (enabled.present) {
|
|
map['enabled'] = Variable<bool>(enabled.value);
|
|
}
|
|
if (id.present) {
|
|
map['id'] = Variable<String>(id.value);
|
|
}
|
|
if (name.present) {
|
|
map['name'] = Variable<String>(name.value);
|
|
}
|
|
if (apiType.present) {
|
|
map['api_type'] = Variable<String>(apiType.value);
|
|
}
|
|
if (baseUrl.present) {
|
|
map['base_url'] = Variable<String>(baseUrl.value);
|
|
}
|
|
if (credentialId.present) {
|
|
map['credential_id'] = Variable<String>(credentialId.value);
|
|
}
|
|
if (rowid.present) {
|
|
map['rowid'] = Variable<int>(rowid.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('AgentProvidersCompanion(')
|
|
..write('enabled: $enabled, ')
|
|
..write('id: $id, ')
|
|
..write('name: $name, ')
|
|
..write('apiType: $apiType, ')
|
|
..write('baseUrl: $baseUrl, ')
|
|
..write('credentialId: $credentialId, ')
|
|
..write('rowid: $rowid')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $AgentModelsTable extends AgentModels
|
|
with TableInfo<$AgentModelsTable, AgentModel> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$AgentModelsTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _providerIdMeta = const VerificationMeta(
|
|
'providerId',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> providerId = GeneratedColumn<String>(
|
|
'provider_id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _modelIdMeta = const VerificationMeta(
|
|
'modelId',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> modelId = GeneratedColumn<String>(
|
|
'model_id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _contextWindowMeta = const VerificationMeta(
|
|
'contextWindow',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<int> contextWindow = GeneratedColumn<int>(
|
|
'context_window',
|
|
aliasedName,
|
|
true,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _maxOutputTokensMeta = const VerificationMeta(
|
|
'maxOutputTokens',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<int> maxOutputTokens = GeneratedColumn<int>(
|
|
'max_output_tokens',
|
|
aliasedName,
|
|
true,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: false,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [
|
|
providerId,
|
|
modelId,
|
|
contextWindow,
|
|
maxOutputTokens,
|
|
];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'agent_models';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<AgentModel> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('provider_id')) {
|
|
context.handle(
|
|
_providerIdMeta,
|
|
providerId.isAcceptableOrUnknown(data['provider_id']!, _providerIdMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_providerIdMeta);
|
|
}
|
|
if (data.containsKey('model_id')) {
|
|
context.handle(
|
|
_modelIdMeta,
|
|
modelId.isAcceptableOrUnknown(data['model_id']!, _modelIdMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_modelIdMeta);
|
|
}
|
|
if (data.containsKey('context_window')) {
|
|
context.handle(
|
|
_contextWindowMeta,
|
|
contextWindow.isAcceptableOrUnknown(
|
|
data['context_window']!,
|
|
_contextWindowMeta,
|
|
),
|
|
);
|
|
}
|
|
if (data.containsKey('max_output_tokens')) {
|
|
context.handle(
|
|
_maxOutputTokensMeta,
|
|
maxOutputTokens.isAcceptableOrUnknown(
|
|
data['max_output_tokens']!,
|
|
_maxOutputTokensMeta,
|
|
),
|
|
);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {providerId, modelId};
|
|
@override
|
|
AgentModel map(Map<String, dynamic> data, {String? tablePrefix}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return AgentModel(
|
|
providerId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}provider_id'],
|
|
)!,
|
|
modelId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}model_id'],
|
|
)!,
|
|
contextWindow: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}context_window'],
|
|
),
|
|
maxOutputTokens: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}max_output_tokens'],
|
|
),
|
|
);
|
|
}
|
|
|
|
@override
|
|
$AgentModelsTable createAlias(String alias) {
|
|
return $AgentModelsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class AgentModel extends DataClass implements Insertable<AgentModel> {
|
|
final String providerId;
|
|
final String modelId;
|
|
final int? contextWindow;
|
|
final int? maxOutputTokens;
|
|
const AgentModel({
|
|
required this.providerId,
|
|
required this.modelId,
|
|
this.contextWindow,
|
|
this.maxOutputTokens,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['provider_id'] = Variable<String>(providerId);
|
|
map['model_id'] = Variable<String>(modelId);
|
|
if (!nullToAbsent || contextWindow != null) {
|
|
map['context_window'] = Variable<int>(contextWindow);
|
|
}
|
|
if (!nullToAbsent || maxOutputTokens != null) {
|
|
map['max_output_tokens'] = Variable<int>(maxOutputTokens);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
AgentModelsCompanion toCompanion(bool nullToAbsent) {
|
|
return AgentModelsCompanion(
|
|
providerId: Value(providerId),
|
|
modelId: Value(modelId),
|
|
contextWindow: contextWindow == null && nullToAbsent
|
|
? const Value.absent()
|
|
: Value(contextWindow),
|
|
maxOutputTokens: maxOutputTokens == null && nullToAbsent
|
|
? const Value.absent()
|
|
: Value(maxOutputTokens),
|
|
);
|
|
}
|
|
|
|
factory AgentModel.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return AgentModel(
|
|
providerId: serializer.fromJson<String>(json['providerId']),
|
|
modelId: serializer.fromJson<String>(json['modelId']),
|
|
contextWindow: serializer.fromJson<int?>(json['contextWindow']),
|
|
maxOutputTokens: serializer.fromJson<int?>(json['maxOutputTokens']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'providerId': serializer.toJson<String>(providerId),
|
|
'modelId': serializer.toJson<String>(modelId),
|
|
'contextWindow': serializer.toJson<int?>(contextWindow),
|
|
'maxOutputTokens': serializer.toJson<int?>(maxOutputTokens),
|
|
};
|
|
}
|
|
|
|
AgentModel copyWith({
|
|
String? providerId,
|
|
String? modelId,
|
|
Value<int?> contextWindow = const Value.absent(),
|
|
Value<int?> maxOutputTokens = const Value.absent(),
|
|
}) => AgentModel(
|
|
providerId: providerId ?? this.providerId,
|
|
modelId: modelId ?? this.modelId,
|
|
contextWindow: contextWindow.present
|
|
? contextWindow.value
|
|
: this.contextWindow,
|
|
maxOutputTokens: maxOutputTokens.present
|
|
? maxOutputTokens.value
|
|
: this.maxOutputTokens,
|
|
);
|
|
AgentModel copyWithCompanion(AgentModelsCompanion data) {
|
|
return AgentModel(
|
|
providerId: data.providerId.present
|
|
? data.providerId.value
|
|
: this.providerId,
|
|
modelId: data.modelId.present ? data.modelId.value : this.modelId,
|
|
contextWindow: data.contextWindow.present
|
|
? data.contextWindow.value
|
|
: this.contextWindow,
|
|
maxOutputTokens: data.maxOutputTokens.present
|
|
? data.maxOutputTokens.value
|
|
: this.maxOutputTokens,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('AgentModel(')
|
|
..write('providerId: $providerId, ')
|
|
..write('modelId: $modelId, ')
|
|
..write('contextWindow: $contextWindow, ')
|
|
..write('maxOutputTokens: $maxOutputTokens')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(providerId, modelId, contextWindow, maxOutputTokens);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is AgentModel &&
|
|
other.providerId == this.providerId &&
|
|
other.modelId == this.modelId &&
|
|
other.contextWindow == this.contextWindow &&
|
|
other.maxOutputTokens == this.maxOutputTokens);
|
|
}
|
|
|
|
class AgentModelsCompanion extends UpdateCompanion<AgentModel> {
|
|
final Value<String> providerId;
|
|
final Value<String> modelId;
|
|
final Value<int?> contextWindow;
|
|
final Value<int?> maxOutputTokens;
|
|
final Value<int> rowid;
|
|
const AgentModelsCompanion({
|
|
this.providerId = const Value.absent(),
|
|
this.modelId = const Value.absent(),
|
|
this.contextWindow = const Value.absent(),
|
|
this.maxOutputTokens = const Value.absent(),
|
|
this.rowid = const Value.absent(),
|
|
});
|
|
AgentModelsCompanion.insert({
|
|
required String providerId,
|
|
required String modelId,
|
|
this.contextWindow = const Value.absent(),
|
|
this.maxOutputTokens = const Value.absent(),
|
|
this.rowid = const Value.absent(),
|
|
}) : providerId = Value(providerId),
|
|
modelId = Value(modelId);
|
|
static Insertable<AgentModel> custom({
|
|
Expression<String>? providerId,
|
|
Expression<String>? modelId,
|
|
Expression<int>? contextWindow,
|
|
Expression<int>? maxOutputTokens,
|
|
Expression<int>? rowid,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (providerId != null) 'provider_id': providerId,
|
|
if (modelId != null) 'model_id': modelId,
|
|
if (contextWindow != null) 'context_window': contextWindow,
|
|
if (maxOutputTokens != null) 'max_output_tokens': maxOutputTokens,
|
|
if (rowid != null) 'rowid': rowid,
|
|
});
|
|
}
|
|
|
|
AgentModelsCompanion copyWith({
|
|
Value<String>? providerId,
|
|
Value<String>? modelId,
|
|
Value<int?>? contextWindow,
|
|
Value<int?>? maxOutputTokens,
|
|
Value<int>? rowid,
|
|
}) {
|
|
return AgentModelsCompanion(
|
|
providerId: providerId ?? this.providerId,
|
|
modelId: modelId ?? this.modelId,
|
|
contextWindow: contextWindow ?? this.contextWindow,
|
|
maxOutputTokens: maxOutputTokens ?? this.maxOutputTokens,
|
|
rowid: rowid ?? this.rowid,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (providerId.present) {
|
|
map['provider_id'] = Variable<String>(providerId.value);
|
|
}
|
|
if (modelId.present) {
|
|
map['model_id'] = Variable<String>(modelId.value);
|
|
}
|
|
if (contextWindow.present) {
|
|
map['context_window'] = Variable<int>(contextWindow.value);
|
|
}
|
|
if (maxOutputTokens.present) {
|
|
map['max_output_tokens'] = Variable<int>(maxOutputTokens.value);
|
|
}
|
|
if (rowid.present) {
|
|
map['rowid'] = Variable<int>(rowid.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('AgentModelsCompanion(')
|
|
..write('providerId: $providerId, ')
|
|
..write('modelId: $modelId, ')
|
|
..write('contextWindow: $contextWindow, ')
|
|
..write('maxOutputTokens: $maxOutputTokens, ')
|
|
..write('rowid: $rowid')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $WorkspaceViewConfigurationsTable extends WorkspaceViewConfigurations
|
|
with
|
|
TableInfo<
|
|
$WorkspaceViewConfigurationsTable,
|
|
WorkspaceViewConfiguration
|
|
> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$WorkspaceViewConfigurationsTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _modeMeta = const VerificationMeta('mode');
|
|
@override
|
|
late final GeneratedColumn<String> mode = GeneratedColumn<String>(
|
|
'mode',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: false,
|
|
defaultValue: const Constant('agent'),
|
|
);
|
|
static const VerificationMeta _idMeta = const VerificationMeta('id');
|
|
@override
|
|
late final GeneratedColumn<int> id = GeneratedColumn<int>(
|
|
'id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _activeProjectIdMeta = const VerificationMeta(
|
|
'activeProjectId',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> activeProjectId = GeneratedColumn<String>(
|
|
'active_project_id',
|
|
aliasedName,
|
|
true,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _sidebarCollapsedMeta = const VerificationMeta(
|
|
'sidebarCollapsed',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<bool> sidebarCollapsed = GeneratedColumn<bool>(
|
|
'sidebar_collapsed',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.bool,
|
|
requiredDuringInsert: true,
|
|
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
|
'CHECK ("sidebar_collapsed" IN (0, 1))',
|
|
),
|
|
);
|
|
static const VerificationMeta _sidebarWidthMeta = const VerificationMeta(
|
|
'sidebarWidth',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<double> sidebarWidth = GeneratedColumn<double>(
|
|
'sidebar_width',
|
|
aliasedName,
|
|
true,
|
|
type: DriftSqlType.double,
|
|
requiredDuringInsert: false,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [
|
|
mode,
|
|
id,
|
|
activeProjectId,
|
|
sidebarCollapsed,
|
|
sidebarWidth,
|
|
];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'workspace_view_configurations';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<WorkspaceViewConfiguration> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('mode')) {
|
|
context.handle(
|
|
_modeMeta,
|
|
mode.isAcceptableOrUnknown(data['mode']!, _modeMeta),
|
|
);
|
|
}
|
|
if (data.containsKey('id')) {
|
|
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
|
|
}
|
|
if (data.containsKey('active_project_id')) {
|
|
context.handle(
|
|
_activeProjectIdMeta,
|
|
activeProjectId.isAcceptableOrUnknown(
|
|
data['active_project_id']!,
|
|
_activeProjectIdMeta,
|
|
),
|
|
);
|
|
}
|
|
if (data.containsKey('sidebar_collapsed')) {
|
|
context.handle(
|
|
_sidebarCollapsedMeta,
|
|
sidebarCollapsed.isAcceptableOrUnknown(
|
|
data['sidebar_collapsed']!,
|
|
_sidebarCollapsedMeta,
|
|
),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_sidebarCollapsedMeta);
|
|
}
|
|
if (data.containsKey('sidebar_width')) {
|
|
context.handle(
|
|
_sidebarWidthMeta,
|
|
sidebarWidth.isAcceptableOrUnknown(
|
|
data['sidebar_width']!,
|
|
_sidebarWidthMeta,
|
|
),
|
|
);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {id};
|
|
@override
|
|
WorkspaceViewConfiguration map(
|
|
Map<String, dynamic> data, {
|
|
String? tablePrefix,
|
|
}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return WorkspaceViewConfiguration(
|
|
mode: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}mode'],
|
|
)!,
|
|
id: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}id'],
|
|
)!,
|
|
activeProjectId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}active_project_id'],
|
|
),
|
|
sidebarCollapsed: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.bool,
|
|
data['${effectivePrefix}sidebar_collapsed'],
|
|
)!,
|
|
sidebarWidth: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.double,
|
|
data['${effectivePrefix}sidebar_width'],
|
|
),
|
|
);
|
|
}
|
|
|
|
@override
|
|
$WorkspaceViewConfigurationsTable createAlias(String alias) {
|
|
return $WorkspaceViewConfigurationsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class WorkspaceViewConfiguration extends DataClass
|
|
implements Insertable<WorkspaceViewConfiguration> {
|
|
final String mode;
|
|
final int id;
|
|
final String? activeProjectId;
|
|
final bool sidebarCollapsed;
|
|
final double? sidebarWidth;
|
|
const WorkspaceViewConfiguration({
|
|
required this.mode,
|
|
required this.id,
|
|
this.activeProjectId,
|
|
required this.sidebarCollapsed,
|
|
this.sidebarWidth,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['mode'] = Variable<String>(mode);
|
|
map['id'] = Variable<int>(id);
|
|
if (!nullToAbsent || activeProjectId != null) {
|
|
map['active_project_id'] = Variable<String>(activeProjectId);
|
|
}
|
|
map['sidebar_collapsed'] = Variable<bool>(sidebarCollapsed);
|
|
if (!nullToAbsent || sidebarWidth != null) {
|
|
map['sidebar_width'] = Variable<double>(sidebarWidth);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
WorkspaceViewConfigurationsCompanion toCompanion(bool nullToAbsent) {
|
|
return WorkspaceViewConfigurationsCompanion(
|
|
mode: Value(mode),
|
|
id: Value(id),
|
|
activeProjectId: activeProjectId == null && nullToAbsent
|
|
? const Value.absent()
|
|
: Value(activeProjectId),
|
|
sidebarCollapsed: Value(sidebarCollapsed),
|
|
sidebarWidth: sidebarWidth == null && nullToAbsent
|
|
? const Value.absent()
|
|
: Value(sidebarWidth),
|
|
);
|
|
}
|
|
|
|
factory WorkspaceViewConfiguration.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return WorkspaceViewConfiguration(
|
|
mode: serializer.fromJson<String>(json['mode']),
|
|
id: serializer.fromJson<int>(json['id']),
|
|
activeProjectId: serializer.fromJson<String?>(json['activeProjectId']),
|
|
sidebarCollapsed: serializer.fromJson<bool>(json['sidebarCollapsed']),
|
|
sidebarWidth: serializer.fromJson<double?>(json['sidebarWidth']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'mode': serializer.toJson<String>(mode),
|
|
'id': serializer.toJson<int>(id),
|
|
'activeProjectId': serializer.toJson<String?>(activeProjectId),
|
|
'sidebarCollapsed': serializer.toJson<bool>(sidebarCollapsed),
|
|
'sidebarWidth': serializer.toJson<double?>(sidebarWidth),
|
|
};
|
|
}
|
|
|
|
WorkspaceViewConfiguration copyWith({
|
|
String? mode,
|
|
int? id,
|
|
Value<String?> activeProjectId = const Value.absent(),
|
|
bool? sidebarCollapsed,
|
|
Value<double?> sidebarWidth = const Value.absent(),
|
|
}) => WorkspaceViewConfiguration(
|
|
mode: mode ?? this.mode,
|
|
id: id ?? this.id,
|
|
activeProjectId: activeProjectId.present
|
|
? activeProjectId.value
|
|
: this.activeProjectId,
|
|
sidebarCollapsed: sidebarCollapsed ?? this.sidebarCollapsed,
|
|
sidebarWidth: sidebarWidth.present ? sidebarWidth.value : this.sidebarWidth,
|
|
);
|
|
WorkspaceViewConfiguration copyWithCompanion(
|
|
WorkspaceViewConfigurationsCompanion data,
|
|
) {
|
|
return WorkspaceViewConfiguration(
|
|
mode: data.mode.present ? data.mode.value : this.mode,
|
|
id: data.id.present ? data.id.value : this.id,
|
|
activeProjectId: data.activeProjectId.present
|
|
? data.activeProjectId.value
|
|
: this.activeProjectId,
|
|
sidebarCollapsed: data.sidebarCollapsed.present
|
|
? data.sidebarCollapsed.value
|
|
: this.sidebarCollapsed,
|
|
sidebarWidth: data.sidebarWidth.present
|
|
? data.sidebarWidth.value
|
|
: this.sidebarWidth,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('WorkspaceViewConfiguration(')
|
|
..write('mode: $mode, ')
|
|
..write('id: $id, ')
|
|
..write('activeProjectId: $activeProjectId, ')
|
|
..write('sidebarCollapsed: $sidebarCollapsed, ')
|
|
..write('sidebarWidth: $sidebarWidth')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(mode, id, activeProjectId, sidebarCollapsed, sidebarWidth);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is WorkspaceViewConfiguration &&
|
|
other.mode == this.mode &&
|
|
other.id == this.id &&
|
|
other.activeProjectId == this.activeProjectId &&
|
|
other.sidebarCollapsed == this.sidebarCollapsed &&
|
|
other.sidebarWidth == this.sidebarWidth);
|
|
}
|
|
|
|
class WorkspaceViewConfigurationsCompanion
|
|
extends UpdateCompanion<WorkspaceViewConfiguration> {
|
|
final Value<String> mode;
|
|
final Value<int> id;
|
|
final Value<String?> activeProjectId;
|
|
final Value<bool> sidebarCollapsed;
|
|
final Value<double?> sidebarWidth;
|
|
const WorkspaceViewConfigurationsCompanion({
|
|
this.mode = const Value.absent(),
|
|
this.id = const Value.absent(),
|
|
this.activeProjectId = const Value.absent(),
|
|
this.sidebarCollapsed = const Value.absent(),
|
|
this.sidebarWidth = const Value.absent(),
|
|
});
|
|
WorkspaceViewConfigurationsCompanion.insert({
|
|
this.mode = const Value.absent(),
|
|
this.id = const Value.absent(),
|
|
this.activeProjectId = const Value.absent(),
|
|
required bool sidebarCollapsed,
|
|
this.sidebarWidth = const Value.absent(),
|
|
}) : sidebarCollapsed = Value(sidebarCollapsed);
|
|
static Insertable<WorkspaceViewConfiguration> custom({
|
|
Expression<String>? mode,
|
|
Expression<int>? id,
|
|
Expression<String>? activeProjectId,
|
|
Expression<bool>? sidebarCollapsed,
|
|
Expression<double>? sidebarWidth,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (mode != null) 'mode': mode,
|
|
if (id != null) 'id': id,
|
|
if (activeProjectId != null) 'active_project_id': activeProjectId,
|
|
if (sidebarCollapsed != null) 'sidebar_collapsed': sidebarCollapsed,
|
|
if (sidebarWidth != null) 'sidebar_width': sidebarWidth,
|
|
});
|
|
}
|
|
|
|
WorkspaceViewConfigurationsCompanion copyWith({
|
|
Value<String>? mode,
|
|
Value<int>? id,
|
|
Value<String?>? activeProjectId,
|
|
Value<bool>? sidebarCollapsed,
|
|
Value<double?>? sidebarWidth,
|
|
}) {
|
|
return WorkspaceViewConfigurationsCompanion(
|
|
mode: mode ?? this.mode,
|
|
id: id ?? this.id,
|
|
activeProjectId: activeProjectId ?? this.activeProjectId,
|
|
sidebarCollapsed: sidebarCollapsed ?? this.sidebarCollapsed,
|
|
sidebarWidth: sidebarWidth ?? this.sidebarWidth,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (mode.present) {
|
|
map['mode'] = Variable<String>(mode.value);
|
|
}
|
|
if (id.present) {
|
|
map['id'] = Variable<int>(id.value);
|
|
}
|
|
if (activeProjectId.present) {
|
|
map['active_project_id'] = Variable<String>(activeProjectId.value);
|
|
}
|
|
if (sidebarCollapsed.present) {
|
|
map['sidebar_collapsed'] = Variable<bool>(sidebarCollapsed.value);
|
|
}
|
|
if (sidebarWidth.present) {
|
|
map['sidebar_width'] = Variable<double>(sidebarWidth.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('WorkspaceViewConfigurationsCompanion(')
|
|
..write('mode: $mode, ')
|
|
..write('id: $id, ')
|
|
..write('activeProjectId: $activeProjectId, ')
|
|
..write('sidebarCollapsed: $sidebarCollapsed, ')
|
|
..write('sidebarWidth: $sidebarWidth')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $ProjectViewConfigurationsTable extends ProjectViewConfigurations
|
|
with TableInfo<$ProjectViewConfigurationsTable, ProjectViewConfiguration> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$ProjectViewConfigurationsTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _projectIdMeta = const VerificationMeta(
|
|
'projectId',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> projectId = GeneratedColumn<String>(
|
|
'project_id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _propertiesOpenMeta = const VerificationMeta(
|
|
'propertiesOpen',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<bool> propertiesOpen = GeneratedColumn<bool>(
|
|
'properties_open',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.bool,
|
|
requiredDuringInsert: true,
|
|
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
|
'CHECK ("properties_open" IN (0, 1))',
|
|
),
|
|
);
|
|
static const VerificationMeta _timelineHeightMeta = const VerificationMeta(
|
|
'timelineHeight',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<double> timelineHeight = GeneratedColumn<double>(
|
|
'timeline_height',
|
|
aliasedName,
|
|
true,
|
|
type: DriftSqlType.double,
|
|
requiredDuringInsert: false,
|
|
);
|
|
static const VerificationMeta _mediaWidthMeta = const VerificationMeta(
|
|
'mediaWidth',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<double> mediaWidth = GeneratedColumn<double>(
|
|
'media_width',
|
|
aliasedName,
|
|
true,
|
|
type: DriftSqlType.double,
|
|
requiredDuringInsert: false,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [
|
|
projectId,
|
|
propertiesOpen,
|
|
timelineHeight,
|
|
mediaWidth,
|
|
];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'project_view_configurations';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<ProjectViewConfiguration> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('project_id')) {
|
|
context.handle(
|
|
_projectIdMeta,
|
|
projectId.isAcceptableOrUnknown(data['project_id']!, _projectIdMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_projectIdMeta);
|
|
}
|
|
if (data.containsKey('properties_open')) {
|
|
context.handle(
|
|
_propertiesOpenMeta,
|
|
propertiesOpen.isAcceptableOrUnknown(
|
|
data['properties_open']!,
|
|
_propertiesOpenMeta,
|
|
),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_propertiesOpenMeta);
|
|
}
|
|
if (data.containsKey('timeline_height')) {
|
|
context.handle(
|
|
_timelineHeightMeta,
|
|
timelineHeight.isAcceptableOrUnknown(
|
|
data['timeline_height']!,
|
|
_timelineHeightMeta,
|
|
),
|
|
);
|
|
}
|
|
if (data.containsKey('media_width')) {
|
|
context.handle(
|
|
_mediaWidthMeta,
|
|
mediaWidth.isAcceptableOrUnknown(data['media_width']!, _mediaWidthMeta),
|
|
);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {projectId};
|
|
@override
|
|
ProjectViewConfiguration map(
|
|
Map<String, dynamic> data, {
|
|
String? tablePrefix,
|
|
}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return ProjectViewConfiguration(
|
|
projectId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}project_id'],
|
|
)!,
|
|
propertiesOpen: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.bool,
|
|
data['${effectivePrefix}properties_open'],
|
|
)!,
|
|
timelineHeight: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.double,
|
|
data['${effectivePrefix}timeline_height'],
|
|
),
|
|
mediaWidth: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.double,
|
|
data['${effectivePrefix}media_width'],
|
|
),
|
|
);
|
|
}
|
|
|
|
@override
|
|
$ProjectViewConfigurationsTable createAlias(String alias) {
|
|
return $ProjectViewConfigurationsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class ProjectViewConfiguration extends DataClass
|
|
implements Insertable<ProjectViewConfiguration> {
|
|
final String projectId;
|
|
final bool propertiesOpen;
|
|
final double? timelineHeight;
|
|
final double? mediaWidth;
|
|
const ProjectViewConfiguration({
|
|
required this.projectId,
|
|
required this.propertiesOpen,
|
|
this.timelineHeight,
|
|
this.mediaWidth,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['project_id'] = Variable<String>(projectId);
|
|
map['properties_open'] = Variable<bool>(propertiesOpen);
|
|
if (!nullToAbsent || timelineHeight != null) {
|
|
map['timeline_height'] = Variable<double>(timelineHeight);
|
|
}
|
|
if (!nullToAbsent || mediaWidth != null) {
|
|
map['media_width'] = Variable<double>(mediaWidth);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
ProjectViewConfigurationsCompanion toCompanion(bool nullToAbsent) {
|
|
return ProjectViewConfigurationsCompanion(
|
|
projectId: Value(projectId),
|
|
propertiesOpen: Value(propertiesOpen),
|
|
timelineHeight: timelineHeight == null && nullToAbsent
|
|
? const Value.absent()
|
|
: Value(timelineHeight),
|
|
mediaWidth: mediaWidth == null && nullToAbsent
|
|
? const Value.absent()
|
|
: Value(mediaWidth),
|
|
);
|
|
}
|
|
|
|
factory ProjectViewConfiguration.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return ProjectViewConfiguration(
|
|
projectId: serializer.fromJson<String>(json['projectId']),
|
|
propertiesOpen: serializer.fromJson<bool>(json['propertiesOpen']),
|
|
timelineHeight: serializer.fromJson<double?>(json['timelineHeight']),
|
|
mediaWidth: serializer.fromJson<double?>(json['mediaWidth']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'projectId': serializer.toJson<String>(projectId),
|
|
'propertiesOpen': serializer.toJson<bool>(propertiesOpen),
|
|
'timelineHeight': serializer.toJson<double?>(timelineHeight),
|
|
'mediaWidth': serializer.toJson<double?>(mediaWidth),
|
|
};
|
|
}
|
|
|
|
ProjectViewConfiguration copyWith({
|
|
String? projectId,
|
|
bool? propertiesOpen,
|
|
Value<double?> timelineHeight = const Value.absent(),
|
|
Value<double?> mediaWidth = const Value.absent(),
|
|
}) => ProjectViewConfiguration(
|
|
projectId: projectId ?? this.projectId,
|
|
propertiesOpen: propertiesOpen ?? this.propertiesOpen,
|
|
timelineHeight: timelineHeight.present
|
|
? timelineHeight.value
|
|
: this.timelineHeight,
|
|
mediaWidth: mediaWidth.present ? mediaWidth.value : this.mediaWidth,
|
|
);
|
|
ProjectViewConfiguration copyWithCompanion(
|
|
ProjectViewConfigurationsCompanion data,
|
|
) {
|
|
return ProjectViewConfiguration(
|
|
projectId: data.projectId.present ? data.projectId.value : this.projectId,
|
|
propertiesOpen: data.propertiesOpen.present
|
|
? data.propertiesOpen.value
|
|
: this.propertiesOpen,
|
|
timelineHeight: data.timelineHeight.present
|
|
? data.timelineHeight.value
|
|
: this.timelineHeight,
|
|
mediaWidth: data.mediaWidth.present
|
|
? data.mediaWidth.value
|
|
: this.mediaWidth,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('ProjectViewConfiguration(')
|
|
..write('projectId: $projectId, ')
|
|
..write('propertiesOpen: $propertiesOpen, ')
|
|
..write('timelineHeight: $timelineHeight, ')
|
|
..write('mediaWidth: $mediaWidth')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(projectId, propertiesOpen, timelineHeight, mediaWidth);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is ProjectViewConfiguration &&
|
|
other.projectId == this.projectId &&
|
|
other.propertiesOpen == this.propertiesOpen &&
|
|
other.timelineHeight == this.timelineHeight &&
|
|
other.mediaWidth == this.mediaWidth);
|
|
}
|
|
|
|
class ProjectViewConfigurationsCompanion
|
|
extends UpdateCompanion<ProjectViewConfiguration> {
|
|
final Value<String> projectId;
|
|
final Value<bool> propertiesOpen;
|
|
final Value<double?> timelineHeight;
|
|
final Value<double?> mediaWidth;
|
|
final Value<int> rowid;
|
|
const ProjectViewConfigurationsCompanion({
|
|
this.projectId = const Value.absent(),
|
|
this.propertiesOpen = const Value.absent(),
|
|
this.timelineHeight = const Value.absent(),
|
|
this.mediaWidth = const Value.absent(),
|
|
this.rowid = const Value.absent(),
|
|
});
|
|
ProjectViewConfigurationsCompanion.insert({
|
|
required String projectId,
|
|
required bool propertiesOpen,
|
|
this.timelineHeight = const Value.absent(),
|
|
this.mediaWidth = const Value.absent(),
|
|
this.rowid = const Value.absent(),
|
|
}) : projectId = Value(projectId),
|
|
propertiesOpen = Value(propertiesOpen);
|
|
static Insertable<ProjectViewConfiguration> custom({
|
|
Expression<String>? projectId,
|
|
Expression<bool>? propertiesOpen,
|
|
Expression<double>? timelineHeight,
|
|
Expression<double>? mediaWidth,
|
|
Expression<int>? rowid,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (projectId != null) 'project_id': projectId,
|
|
if (propertiesOpen != null) 'properties_open': propertiesOpen,
|
|
if (timelineHeight != null) 'timeline_height': timelineHeight,
|
|
if (mediaWidth != null) 'media_width': mediaWidth,
|
|
if (rowid != null) 'rowid': rowid,
|
|
});
|
|
}
|
|
|
|
ProjectViewConfigurationsCompanion copyWith({
|
|
Value<String>? projectId,
|
|
Value<bool>? propertiesOpen,
|
|
Value<double?>? timelineHeight,
|
|
Value<double?>? mediaWidth,
|
|
Value<int>? rowid,
|
|
}) {
|
|
return ProjectViewConfigurationsCompanion(
|
|
projectId: projectId ?? this.projectId,
|
|
propertiesOpen: propertiesOpen ?? this.propertiesOpen,
|
|
timelineHeight: timelineHeight ?? this.timelineHeight,
|
|
mediaWidth: mediaWidth ?? this.mediaWidth,
|
|
rowid: rowid ?? this.rowid,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (projectId.present) {
|
|
map['project_id'] = Variable<String>(projectId.value);
|
|
}
|
|
if (propertiesOpen.present) {
|
|
map['properties_open'] = Variable<bool>(propertiesOpen.value);
|
|
}
|
|
if (timelineHeight.present) {
|
|
map['timeline_height'] = Variable<double>(timelineHeight.value);
|
|
}
|
|
if (mediaWidth.present) {
|
|
map['media_width'] = Variable<double>(mediaWidth.value);
|
|
}
|
|
if (rowid.present) {
|
|
map['rowid'] = Variable<int>(rowid.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('ProjectViewConfigurationsCompanion(')
|
|
..write('projectId: $projectId, ')
|
|
..write('propertiesOpen: $propertiesOpen, ')
|
|
..write('timelineHeight: $timelineHeight, ')
|
|
..write('mediaWidth: $mediaWidth, ')
|
|
..write('rowid: $rowid')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class $TimelineViewConfigurationsTable extends TimelineViewConfigurations
|
|
with
|
|
TableInfo<$TimelineViewConfigurationsTable, TimelineViewConfiguration> {
|
|
@override
|
|
final GeneratedDatabase attachedDatabase;
|
|
final String? _alias;
|
|
$TimelineViewConfigurationsTable(this.attachedDatabase, [this._alias]);
|
|
static const VerificationMeta _projectIdMeta = const VerificationMeta(
|
|
'projectId',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> projectId = GeneratedColumn<String>(
|
|
'project_id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _timelineIdMeta = const VerificationMeta(
|
|
'timelineId',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> timelineId = GeneratedColumn<String>(
|
|
'timeline_id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _sequenceIdMeta = const VerificationMeta(
|
|
'sequenceId',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<String> sequenceId = GeneratedColumn<String>(
|
|
'sequence_id',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.string,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _activeMeta = const VerificationMeta('active');
|
|
@override
|
|
late final GeneratedColumn<bool> active = GeneratedColumn<bool>(
|
|
'active',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.bool,
|
|
requiredDuringInsert: true,
|
|
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
|
'CHECK ("active" IN (0, 1))',
|
|
),
|
|
);
|
|
static const VerificationMeta _playheadTickMeta = const VerificationMeta(
|
|
'playheadTick',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<int> playheadTick = GeneratedColumn<int>(
|
|
'playhead_tick',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _baseTickMeta = const VerificationMeta(
|
|
'baseTick',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<int> baseTick = GeneratedColumn<int>(
|
|
'base_tick',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.int,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _fractionalTickMeta = const VerificationMeta(
|
|
'fractionalTick',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<double> fractionalTick = GeneratedColumn<double>(
|
|
'fractional_tick',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.double,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _pixelsPerTickMeta = const VerificationMeta(
|
|
'pixelsPerTick',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<double> pixelsPerTick = GeneratedColumn<double>(
|
|
'pixels_per_tick',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.double,
|
|
requiredDuringInsert: true,
|
|
);
|
|
static const VerificationMeta _verticalOffsetMeta = const VerificationMeta(
|
|
'verticalOffset',
|
|
);
|
|
@override
|
|
late final GeneratedColumn<double> verticalOffset = GeneratedColumn<double>(
|
|
'vertical_offset',
|
|
aliasedName,
|
|
false,
|
|
type: DriftSqlType.double,
|
|
requiredDuringInsert: true,
|
|
);
|
|
@override
|
|
List<GeneratedColumn> get $columns => [
|
|
projectId,
|
|
timelineId,
|
|
sequenceId,
|
|
active,
|
|
playheadTick,
|
|
baseTick,
|
|
fractionalTick,
|
|
pixelsPerTick,
|
|
verticalOffset,
|
|
];
|
|
@override
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
@override
|
|
String get actualTableName => $name;
|
|
static const String $name = 'timeline_view_configurations';
|
|
@override
|
|
VerificationContext validateIntegrity(
|
|
Insertable<TimelineViewConfiguration> instance, {
|
|
bool isInserting = false,
|
|
}) {
|
|
final context = VerificationContext();
|
|
final data = instance.toColumns(true);
|
|
if (data.containsKey('project_id')) {
|
|
context.handle(
|
|
_projectIdMeta,
|
|
projectId.isAcceptableOrUnknown(data['project_id']!, _projectIdMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_projectIdMeta);
|
|
}
|
|
if (data.containsKey('timeline_id')) {
|
|
context.handle(
|
|
_timelineIdMeta,
|
|
timelineId.isAcceptableOrUnknown(data['timeline_id']!, _timelineIdMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_timelineIdMeta);
|
|
}
|
|
if (data.containsKey('sequence_id')) {
|
|
context.handle(
|
|
_sequenceIdMeta,
|
|
sequenceId.isAcceptableOrUnknown(data['sequence_id']!, _sequenceIdMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_sequenceIdMeta);
|
|
}
|
|
if (data.containsKey('active')) {
|
|
context.handle(
|
|
_activeMeta,
|
|
active.isAcceptableOrUnknown(data['active']!, _activeMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_activeMeta);
|
|
}
|
|
if (data.containsKey('playhead_tick')) {
|
|
context.handle(
|
|
_playheadTickMeta,
|
|
playheadTick.isAcceptableOrUnknown(
|
|
data['playhead_tick']!,
|
|
_playheadTickMeta,
|
|
),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_playheadTickMeta);
|
|
}
|
|
if (data.containsKey('base_tick')) {
|
|
context.handle(
|
|
_baseTickMeta,
|
|
baseTick.isAcceptableOrUnknown(data['base_tick']!, _baseTickMeta),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_baseTickMeta);
|
|
}
|
|
if (data.containsKey('fractional_tick')) {
|
|
context.handle(
|
|
_fractionalTickMeta,
|
|
fractionalTick.isAcceptableOrUnknown(
|
|
data['fractional_tick']!,
|
|
_fractionalTickMeta,
|
|
),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_fractionalTickMeta);
|
|
}
|
|
if (data.containsKey('pixels_per_tick')) {
|
|
context.handle(
|
|
_pixelsPerTickMeta,
|
|
pixelsPerTick.isAcceptableOrUnknown(
|
|
data['pixels_per_tick']!,
|
|
_pixelsPerTickMeta,
|
|
),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_pixelsPerTickMeta);
|
|
}
|
|
if (data.containsKey('vertical_offset')) {
|
|
context.handle(
|
|
_verticalOffsetMeta,
|
|
verticalOffset.isAcceptableOrUnknown(
|
|
data['vertical_offset']!,
|
|
_verticalOffsetMeta,
|
|
),
|
|
);
|
|
} else if (isInserting) {
|
|
context.missing(_verticalOffsetMeta);
|
|
}
|
|
return context;
|
|
}
|
|
|
|
@override
|
|
Set<GeneratedColumn> get $primaryKey => {projectId, timelineId, sequenceId};
|
|
@override
|
|
TimelineViewConfiguration map(
|
|
Map<String, dynamic> data, {
|
|
String? tablePrefix,
|
|
}) {
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
return TimelineViewConfiguration(
|
|
projectId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}project_id'],
|
|
)!,
|
|
timelineId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}timeline_id'],
|
|
)!,
|
|
sequenceId: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.string,
|
|
data['${effectivePrefix}sequence_id'],
|
|
)!,
|
|
active: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.bool,
|
|
data['${effectivePrefix}active'],
|
|
)!,
|
|
playheadTick: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}playhead_tick'],
|
|
)!,
|
|
baseTick: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.int,
|
|
data['${effectivePrefix}base_tick'],
|
|
)!,
|
|
fractionalTick: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.double,
|
|
data['${effectivePrefix}fractional_tick'],
|
|
)!,
|
|
pixelsPerTick: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.double,
|
|
data['${effectivePrefix}pixels_per_tick'],
|
|
)!,
|
|
verticalOffset: attachedDatabase.typeMapping.read(
|
|
DriftSqlType.double,
|
|
data['${effectivePrefix}vertical_offset'],
|
|
)!,
|
|
);
|
|
}
|
|
|
|
@override
|
|
$TimelineViewConfigurationsTable createAlias(String alias) {
|
|
return $TimelineViewConfigurationsTable(attachedDatabase, alias);
|
|
}
|
|
}
|
|
|
|
class TimelineViewConfiguration extends DataClass
|
|
implements Insertable<TimelineViewConfiguration> {
|
|
final String projectId;
|
|
final String timelineId;
|
|
final String sequenceId;
|
|
final bool active;
|
|
final int playheadTick;
|
|
final int baseTick;
|
|
final double fractionalTick;
|
|
final double pixelsPerTick;
|
|
final double verticalOffset;
|
|
const TimelineViewConfiguration({
|
|
required this.projectId,
|
|
required this.timelineId,
|
|
required this.sequenceId,
|
|
required this.active,
|
|
required this.playheadTick,
|
|
required this.baseTick,
|
|
required this.fractionalTick,
|
|
required this.pixelsPerTick,
|
|
required this.verticalOffset,
|
|
});
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
map['project_id'] = Variable<String>(projectId);
|
|
map['timeline_id'] = Variable<String>(timelineId);
|
|
map['sequence_id'] = Variable<String>(sequenceId);
|
|
map['active'] = Variable<bool>(active);
|
|
map['playhead_tick'] = Variable<int>(playheadTick);
|
|
map['base_tick'] = Variable<int>(baseTick);
|
|
map['fractional_tick'] = Variable<double>(fractionalTick);
|
|
map['pixels_per_tick'] = Variable<double>(pixelsPerTick);
|
|
map['vertical_offset'] = Variable<double>(verticalOffset);
|
|
return map;
|
|
}
|
|
|
|
TimelineViewConfigurationsCompanion toCompanion(bool nullToAbsent) {
|
|
return TimelineViewConfigurationsCompanion(
|
|
projectId: Value(projectId),
|
|
timelineId: Value(timelineId),
|
|
sequenceId: Value(sequenceId),
|
|
active: Value(active),
|
|
playheadTick: Value(playheadTick),
|
|
baseTick: Value(baseTick),
|
|
fractionalTick: Value(fractionalTick),
|
|
pixelsPerTick: Value(pixelsPerTick),
|
|
verticalOffset: Value(verticalOffset),
|
|
);
|
|
}
|
|
|
|
factory TimelineViewConfiguration.fromJson(
|
|
Map<String, dynamic> json, {
|
|
ValueSerializer? serializer,
|
|
}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return TimelineViewConfiguration(
|
|
projectId: serializer.fromJson<String>(json['projectId']),
|
|
timelineId: serializer.fromJson<String>(json['timelineId']),
|
|
sequenceId: serializer.fromJson<String>(json['sequenceId']),
|
|
active: serializer.fromJson<bool>(json['active']),
|
|
playheadTick: serializer.fromJson<int>(json['playheadTick']),
|
|
baseTick: serializer.fromJson<int>(json['baseTick']),
|
|
fractionalTick: serializer.fromJson<double>(json['fractionalTick']),
|
|
pixelsPerTick: serializer.fromJson<double>(json['pixelsPerTick']),
|
|
verticalOffset: serializer.fromJson<double>(json['verticalOffset']),
|
|
);
|
|
}
|
|
@override
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
return <String, dynamic>{
|
|
'projectId': serializer.toJson<String>(projectId),
|
|
'timelineId': serializer.toJson<String>(timelineId),
|
|
'sequenceId': serializer.toJson<String>(sequenceId),
|
|
'active': serializer.toJson<bool>(active),
|
|
'playheadTick': serializer.toJson<int>(playheadTick),
|
|
'baseTick': serializer.toJson<int>(baseTick),
|
|
'fractionalTick': serializer.toJson<double>(fractionalTick),
|
|
'pixelsPerTick': serializer.toJson<double>(pixelsPerTick),
|
|
'verticalOffset': serializer.toJson<double>(verticalOffset),
|
|
};
|
|
}
|
|
|
|
TimelineViewConfiguration copyWith({
|
|
String? projectId,
|
|
String? timelineId,
|
|
String? sequenceId,
|
|
bool? active,
|
|
int? playheadTick,
|
|
int? baseTick,
|
|
double? fractionalTick,
|
|
double? pixelsPerTick,
|
|
double? verticalOffset,
|
|
}) => TimelineViewConfiguration(
|
|
projectId: projectId ?? this.projectId,
|
|
timelineId: timelineId ?? this.timelineId,
|
|
sequenceId: sequenceId ?? this.sequenceId,
|
|
active: active ?? this.active,
|
|
playheadTick: playheadTick ?? this.playheadTick,
|
|
baseTick: baseTick ?? this.baseTick,
|
|
fractionalTick: fractionalTick ?? this.fractionalTick,
|
|
pixelsPerTick: pixelsPerTick ?? this.pixelsPerTick,
|
|
verticalOffset: verticalOffset ?? this.verticalOffset,
|
|
);
|
|
TimelineViewConfiguration copyWithCompanion(
|
|
TimelineViewConfigurationsCompanion data,
|
|
) {
|
|
return TimelineViewConfiguration(
|
|
projectId: data.projectId.present ? data.projectId.value : this.projectId,
|
|
timelineId: data.timelineId.present
|
|
? data.timelineId.value
|
|
: this.timelineId,
|
|
sequenceId: data.sequenceId.present
|
|
? data.sequenceId.value
|
|
: this.sequenceId,
|
|
active: data.active.present ? data.active.value : this.active,
|
|
playheadTick: data.playheadTick.present
|
|
? data.playheadTick.value
|
|
: this.playheadTick,
|
|
baseTick: data.baseTick.present ? data.baseTick.value : this.baseTick,
|
|
fractionalTick: data.fractionalTick.present
|
|
? data.fractionalTick.value
|
|
: this.fractionalTick,
|
|
pixelsPerTick: data.pixelsPerTick.present
|
|
? data.pixelsPerTick.value
|
|
: this.pixelsPerTick,
|
|
verticalOffset: data.verticalOffset.present
|
|
? data.verticalOffset.value
|
|
: this.verticalOffset,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('TimelineViewConfiguration(')
|
|
..write('projectId: $projectId, ')
|
|
..write('timelineId: $timelineId, ')
|
|
..write('sequenceId: $sequenceId, ')
|
|
..write('active: $active, ')
|
|
..write('playheadTick: $playheadTick, ')
|
|
..write('baseTick: $baseTick, ')
|
|
..write('fractionalTick: $fractionalTick, ')
|
|
..write('pixelsPerTick: $pixelsPerTick, ')
|
|
..write('verticalOffset: $verticalOffset')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
projectId,
|
|
timelineId,
|
|
sequenceId,
|
|
active,
|
|
playheadTick,
|
|
baseTick,
|
|
fractionalTick,
|
|
pixelsPerTick,
|
|
verticalOffset,
|
|
);
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
(other is TimelineViewConfiguration &&
|
|
other.projectId == this.projectId &&
|
|
other.timelineId == this.timelineId &&
|
|
other.sequenceId == this.sequenceId &&
|
|
other.active == this.active &&
|
|
other.playheadTick == this.playheadTick &&
|
|
other.baseTick == this.baseTick &&
|
|
other.fractionalTick == this.fractionalTick &&
|
|
other.pixelsPerTick == this.pixelsPerTick &&
|
|
other.verticalOffset == this.verticalOffset);
|
|
}
|
|
|
|
class TimelineViewConfigurationsCompanion
|
|
extends UpdateCompanion<TimelineViewConfiguration> {
|
|
final Value<String> projectId;
|
|
final Value<String> timelineId;
|
|
final Value<String> sequenceId;
|
|
final Value<bool> active;
|
|
final Value<int> playheadTick;
|
|
final Value<int> baseTick;
|
|
final Value<double> fractionalTick;
|
|
final Value<double> pixelsPerTick;
|
|
final Value<double> verticalOffset;
|
|
final Value<int> rowid;
|
|
const TimelineViewConfigurationsCompanion({
|
|
this.projectId = const Value.absent(),
|
|
this.timelineId = const Value.absent(),
|
|
this.sequenceId = const Value.absent(),
|
|
this.active = const Value.absent(),
|
|
this.playheadTick = const Value.absent(),
|
|
this.baseTick = const Value.absent(),
|
|
this.fractionalTick = const Value.absent(),
|
|
this.pixelsPerTick = const Value.absent(),
|
|
this.verticalOffset = const Value.absent(),
|
|
this.rowid = const Value.absent(),
|
|
});
|
|
TimelineViewConfigurationsCompanion.insert({
|
|
required String projectId,
|
|
required String timelineId,
|
|
required String sequenceId,
|
|
required bool active,
|
|
required int playheadTick,
|
|
required int baseTick,
|
|
required double fractionalTick,
|
|
required double pixelsPerTick,
|
|
required double verticalOffset,
|
|
this.rowid = const Value.absent(),
|
|
}) : projectId = Value(projectId),
|
|
timelineId = Value(timelineId),
|
|
sequenceId = Value(sequenceId),
|
|
active = Value(active),
|
|
playheadTick = Value(playheadTick),
|
|
baseTick = Value(baseTick),
|
|
fractionalTick = Value(fractionalTick),
|
|
pixelsPerTick = Value(pixelsPerTick),
|
|
verticalOffset = Value(verticalOffset);
|
|
static Insertable<TimelineViewConfiguration> custom({
|
|
Expression<String>? projectId,
|
|
Expression<String>? timelineId,
|
|
Expression<String>? sequenceId,
|
|
Expression<bool>? active,
|
|
Expression<int>? playheadTick,
|
|
Expression<int>? baseTick,
|
|
Expression<double>? fractionalTick,
|
|
Expression<double>? pixelsPerTick,
|
|
Expression<double>? verticalOffset,
|
|
Expression<int>? rowid,
|
|
}) {
|
|
return RawValuesInsertable({
|
|
if (projectId != null) 'project_id': projectId,
|
|
if (timelineId != null) 'timeline_id': timelineId,
|
|
if (sequenceId != null) 'sequence_id': sequenceId,
|
|
if (active != null) 'active': active,
|
|
if (playheadTick != null) 'playhead_tick': playheadTick,
|
|
if (baseTick != null) 'base_tick': baseTick,
|
|
if (fractionalTick != null) 'fractional_tick': fractionalTick,
|
|
if (pixelsPerTick != null) 'pixels_per_tick': pixelsPerTick,
|
|
if (verticalOffset != null) 'vertical_offset': verticalOffset,
|
|
if (rowid != null) 'rowid': rowid,
|
|
});
|
|
}
|
|
|
|
TimelineViewConfigurationsCompanion copyWith({
|
|
Value<String>? projectId,
|
|
Value<String>? timelineId,
|
|
Value<String>? sequenceId,
|
|
Value<bool>? active,
|
|
Value<int>? playheadTick,
|
|
Value<int>? baseTick,
|
|
Value<double>? fractionalTick,
|
|
Value<double>? pixelsPerTick,
|
|
Value<double>? verticalOffset,
|
|
Value<int>? rowid,
|
|
}) {
|
|
return TimelineViewConfigurationsCompanion(
|
|
projectId: projectId ?? this.projectId,
|
|
timelineId: timelineId ?? this.timelineId,
|
|
sequenceId: sequenceId ?? this.sequenceId,
|
|
active: active ?? this.active,
|
|
playheadTick: playheadTick ?? this.playheadTick,
|
|
baseTick: baseTick ?? this.baseTick,
|
|
fractionalTick: fractionalTick ?? this.fractionalTick,
|
|
pixelsPerTick: pixelsPerTick ?? this.pixelsPerTick,
|
|
verticalOffset: verticalOffset ?? this.verticalOffset,
|
|
rowid: rowid ?? this.rowid,
|
|
);
|
|
}
|
|
|
|
@override
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
final map = <String, Expression>{};
|
|
if (projectId.present) {
|
|
map['project_id'] = Variable<String>(projectId.value);
|
|
}
|
|
if (timelineId.present) {
|
|
map['timeline_id'] = Variable<String>(timelineId.value);
|
|
}
|
|
if (sequenceId.present) {
|
|
map['sequence_id'] = Variable<String>(sequenceId.value);
|
|
}
|
|
if (active.present) {
|
|
map['active'] = Variable<bool>(active.value);
|
|
}
|
|
if (playheadTick.present) {
|
|
map['playhead_tick'] = Variable<int>(playheadTick.value);
|
|
}
|
|
if (baseTick.present) {
|
|
map['base_tick'] = Variable<int>(baseTick.value);
|
|
}
|
|
if (fractionalTick.present) {
|
|
map['fractional_tick'] = Variable<double>(fractionalTick.value);
|
|
}
|
|
if (pixelsPerTick.present) {
|
|
map['pixels_per_tick'] = Variable<double>(pixelsPerTick.value);
|
|
}
|
|
if (verticalOffset.present) {
|
|
map['vertical_offset'] = Variable<double>(verticalOffset.value);
|
|
}
|
|
if (rowid.present) {
|
|
map['rowid'] = Variable<int>(rowid.value);
|
|
}
|
|
return map;
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (StringBuffer('TimelineViewConfigurationsCompanion(')
|
|
..write('projectId: $projectId, ')
|
|
..write('timelineId: $timelineId, ')
|
|
..write('sequenceId: $sequenceId, ')
|
|
..write('active: $active, ')
|
|
..write('playheadTick: $playheadTick, ')
|
|
..write('baseTick: $baseTick, ')
|
|
..write('fractionalTick: $fractionalTick, ')
|
|
..write('pixelsPerTick: $pixelsPerTick, ')
|
|
..write('verticalOffset: $verticalOffset, ')
|
|
..write('rowid: $rowid')
|
|
..write(')'))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
abstract class _$AppDatabase extends GeneratedDatabase {
|
|
_$AppDatabase(QueryExecutor e) : super(e);
|
|
$AppDatabaseManager get managers => $AppDatabaseManager(this);
|
|
late final $RecentProjectRecordsTable recentProjectRecords =
|
|
$RecentProjectRecordsTable(this);
|
|
late final $LastOpenedTimelinesTable lastOpenedTimelines =
|
|
$LastOpenedTimelinesTable(this);
|
|
late final $McpConfigurationsTable mcpConfigurations =
|
|
$McpConfigurationsTable(this);
|
|
late final $AppearanceConfigurationsTable appearanceConfigurations =
|
|
$AppearanceConfigurationsTable(this);
|
|
late final $LanguageConfigurationsTable languageConfigurations =
|
|
$LanguageConfigurationsTable(this);
|
|
late final $ConversationLocationConfigurationsTable
|
|
conversationLocationConfigurations = $ConversationLocationConfigurationsTable(
|
|
this,
|
|
);
|
|
late final $ProjectLocationConfigurationsTable projectLocationConfigurations =
|
|
$ProjectLocationConfigurationsTable(this);
|
|
late final $ResourceLocationConfigurationsTable
|
|
resourceLocationConfigurations = $ResourceLocationConfigurationsTable(this);
|
|
late final $AgentConfigurationsTable agentConfigurations =
|
|
$AgentConfigurationsTable(this);
|
|
late final $AgentProvidersTable agentProviders = $AgentProvidersTable(this);
|
|
late final $AgentModelsTable agentModels = $AgentModelsTable(this);
|
|
late final $WorkspaceViewConfigurationsTable workspaceViewConfigurations =
|
|
$WorkspaceViewConfigurationsTable(this);
|
|
late final $ProjectViewConfigurationsTable projectViewConfigurations =
|
|
$ProjectViewConfigurationsTable(this);
|
|
late final $TimelineViewConfigurationsTable timelineViewConfigurations =
|
|
$TimelineViewConfigurationsTable(this);
|
|
@override
|
|
Iterable<TableInfo<Table, Object?>> get allTables =>
|
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
|
@override
|
|
List<DatabaseSchemaEntity> get allSchemaEntities => [
|
|
recentProjectRecords,
|
|
lastOpenedTimelines,
|
|
mcpConfigurations,
|
|
appearanceConfigurations,
|
|
languageConfigurations,
|
|
conversationLocationConfigurations,
|
|
projectLocationConfigurations,
|
|
resourceLocationConfigurations,
|
|
agentConfigurations,
|
|
agentProviders,
|
|
agentModels,
|
|
workspaceViewConfigurations,
|
|
projectViewConfigurations,
|
|
timelineViewConfigurations,
|
|
];
|
|
}
|
|
|
|
typedef $$RecentProjectRecordsTableCreateCompanionBuilder =
|
|
RecentProjectRecordsCompanion Function({
|
|
required String id,
|
|
required String name,
|
|
required String path,
|
|
required int position,
|
|
Value<int> rowid,
|
|
});
|
|
typedef $$RecentProjectRecordsTableUpdateCompanionBuilder =
|
|
RecentProjectRecordsCompanion Function({
|
|
Value<String> id,
|
|
Value<String> name,
|
|
Value<String> path,
|
|
Value<int> position,
|
|
Value<int> rowid,
|
|
});
|
|
|
|
class $$RecentProjectRecordsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $RecentProjectRecordsTable> {
|
|
$$RecentProjectRecordsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<String> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get name => $composableBuilder(
|
|
column: $table.name,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get path => $composableBuilder(
|
|
column: $table.path,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<int> get position => $composableBuilder(
|
|
column: $table.position,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$RecentProjectRecordsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $RecentProjectRecordsTable> {
|
|
$$RecentProjectRecordsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<String> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get name => $composableBuilder(
|
|
column: $table.name,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get path => $composableBuilder(
|
|
column: $table.path,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<int> get position => $composableBuilder(
|
|
column: $table.position,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$RecentProjectRecordsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $RecentProjectRecordsTable> {
|
|
$$RecentProjectRecordsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<String> get id =>
|
|
$composableBuilder(column: $table.id, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get name =>
|
|
$composableBuilder(column: $table.name, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get path =>
|
|
$composableBuilder(column: $table.path, builder: (column) => column);
|
|
|
|
GeneratedColumn<int> get position =>
|
|
$composableBuilder(column: $table.position, builder: (column) => column);
|
|
}
|
|
|
|
class $$RecentProjectRecordsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$RecentProjectRecordsTable,
|
|
RecentProjectRecord,
|
|
$$RecentProjectRecordsTableFilterComposer,
|
|
$$RecentProjectRecordsTableOrderingComposer,
|
|
$$RecentProjectRecordsTableAnnotationComposer,
|
|
$$RecentProjectRecordsTableCreateCompanionBuilder,
|
|
$$RecentProjectRecordsTableUpdateCompanionBuilder,
|
|
(
|
|
RecentProjectRecord,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$RecentProjectRecordsTable,
|
|
RecentProjectRecord
|
|
>,
|
|
),
|
|
RecentProjectRecord,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$RecentProjectRecordsTableTableManager(
|
|
_$AppDatabase db,
|
|
$RecentProjectRecordsTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$RecentProjectRecordsTableFilterComposer($db: db, $table: table),
|
|
createOrderingComposer: () =>
|
|
$$RecentProjectRecordsTableOrderingComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createComputedFieldComposer: () =>
|
|
$$RecentProjectRecordsTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<String> id = const Value.absent(),
|
|
Value<String> name = const Value.absent(),
|
|
Value<String> path = const Value.absent(),
|
|
Value<int> position = const Value.absent(),
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => RecentProjectRecordsCompanion(
|
|
id: id,
|
|
name: name,
|
|
path: path,
|
|
position: position,
|
|
rowid: rowid,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
required String id,
|
|
required String name,
|
|
required String path,
|
|
required int position,
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => RecentProjectRecordsCompanion.insert(
|
|
id: id,
|
|
name: name,
|
|
path: path,
|
|
position: position,
|
|
rowid: rowid,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<$RecentProjectRecordsTable, RecentProjectRecord>(
|
|
table,
|
|
),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$RecentProjectRecordsTable,
|
|
RecentProjectRecord
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$RecentProjectRecordsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$RecentProjectRecordsTable,
|
|
RecentProjectRecord,
|
|
$$RecentProjectRecordsTableFilterComposer,
|
|
$$RecentProjectRecordsTableOrderingComposer,
|
|
$$RecentProjectRecordsTableAnnotationComposer,
|
|
$$RecentProjectRecordsTableCreateCompanionBuilder,
|
|
$$RecentProjectRecordsTableUpdateCompanionBuilder,
|
|
(
|
|
RecentProjectRecord,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$RecentProjectRecordsTable,
|
|
RecentProjectRecord
|
|
>,
|
|
),
|
|
RecentProjectRecord,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$LastOpenedTimelinesTableCreateCompanionBuilder =
|
|
LastOpenedTimelinesCompanion Function({
|
|
required String projectId,
|
|
required String timelineId,
|
|
Value<int> rowid,
|
|
});
|
|
typedef $$LastOpenedTimelinesTableUpdateCompanionBuilder =
|
|
LastOpenedTimelinesCompanion Function({
|
|
Value<String> projectId,
|
|
Value<String> timelineId,
|
|
Value<int> rowid,
|
|
});
|
|
|
|
class $$LastOpenedTimelinesTableFilterComposer
|
|
extends Composer<_$AppDatabase, $LastOpenedTimelinesTable> {
|
|
$$LastOpenedTimelinesTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<String> get projectId => $composableBuilder(
|
|
column: $table.projectId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get timelineId => $composableBuilder(
|
|
column: $table.timelineId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$LastOpenedTimelinesTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $LastOpenedTimelinesTable> {
|
|
$$LastOpenedTimelinesTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<String> get projectId => $composableBuilder(
|
|
column: $table.projectId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get timelineId => $composableBuilder(
|
|
column: $table.timelineId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$LastOpenedTimelinesTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $LastOpenedTimelinesTable> {
|
|
$$LastOpenedTimelinesTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<String> get projectId =>
|
|
$composableBuilder(column: $table.projectId, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get timelineId => $composableBuilder(
|
|
column: $table.timelineId,
|
|
builder: (column) => column,
|
|
);
|
|
}
|
|
|
|
class $$LastOpenedTimelinesTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$LastOpenedTimelinesTable,
|
|
LastOpenedTimeline,
|
|
$$LastOpenedTimelinesTableFilterComposer,
|
|
$$LastOpenedTimelinesTableOrderingComposer,
|
|
$$LastOpenedTimelinesTableAnnotationComposer,
|
|
$$LastOpenedTimelinesTableCreateCompanionBuilder,
|
|
$$LastOpenedTimelinesTableUpdateCompanionBuilder,
|
|
(
|
|
LastOpenedTimeline,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$LastOpenedTimelinesTable,
|
|
LastOpenedTimeline
|
|
>,
|
|
),
|
|
LastOpenedTimeline,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$LastOpenedTimelinesTableTableManager(
|
|
_$AppDatabase db,
|
|
$LastOpenedTimelinesTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$LastOpenedTimelinesTableFilterComposer($db: db, $table: table),
|
|
createOrderingComposer: () =>
|
|
$$LastOpenedTimelinesTableOrderingComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createComputedFieldComposer: () =>
|
|
$$LastOpenedTimelinesTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<String> projectId = const Value.absent(),
|
|
Value<String> timelineId = const Value.absent(),
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => LastOpenedTimelinesCompanion(
|
|
projectId: projectId,
|
|
timelineId: timelineId,
|
|
rowid: rowid,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
required String projectId,
|
|
required String timelineId,
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => LastOpenedTimelinesCompanion.insert(
|
|
projectId: projectId,
|
|
timelineId: timelineId,
|
|
rowid: rowid,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<$LastOpenedTimelinesTable, LastOpenedTimeline>(
|
|
table,
|
|
),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$LastOpenedTimelinesTable,
|
|
LastOpenedTimeline
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$LastOpenedTimelinesTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$LastOpenedTimelinesTable,
|
|
LastOpenedTimeline,
|
|
$$LastOpenedTimelinesTableFilterComposer,
|
|
$$LastOpenedTimelinesTableOrderingComposer,
|
|
$$LastOpenedTimelinesTableAnnotationComposer,
|
|
$$LastOpenedTimelinesTableCreateCompanionBuilder,
|
|
$$LastOpenedTimelinesTableUpdateCompanionBuilder,
|
|
(
|
|
LastOpenedTimeline,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$LastOpenedTimelinesTable,
|
|
LastOpenedTimeline
|
|
>,
|
|
),
|
|
LastOpenedTimeline,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$McpConfigurationsTableCreateCompanionBuilder =
|
|
McpConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
required bool enabled,
|
|
required int port,
|
|
required String token,
|
|
});
|
|
typedef $$McpConfigurationsTableUpdateCompanionBuilder =
|
|
McpConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
Value<bool> enabled,
|
|
Value<int> port,
|
|
Value<String> token,
|
|
});
|
|
|
|
class $$McpConfigurationsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $McpConfigurationsTable> {
|
|
$$McpConfigurationsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<bool> get enabled => $composableBuilder(
|
|
column: $table.enabled,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<int> get port => $composableBuilder(
|
|
column: $table.port,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get token => $composableBuilder(
|
|
column: $table.token,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$McpConfigurationsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $McpConfigurationsTable> {
|
|
$$McpConfigurationsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<bool> get enabled => $composableBuilder(
|
|
column: $table.enabled,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<int> get port => $composableBuilder(
|
|
column: $table.port,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get token => $composableBuilder(
|
|
column: $table.token,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$McpConfigurationsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $McpConfigurationsTable> {
|
|
$$McpConfigurationsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<int> get id =>
|
|
$composableBuilder(column: $table.id, builder: (column) => column);
|
|
|
|
GeneratedColumn<bool> get enabled =>
|
|
$composableBuilder(column: $table.enabled, builder: (column) => column);
|
|
|
|
GeneratedColumn<int> get port =>
|
|
$composableBuilder(column: $table.port, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get token =>
|
|
$composableBuilder(column: $table.token, builder: (column) => column);
|
|
}
|
|
|
|
class $$McpConfigurationsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$McpConfigurationsTable,
|
|
McpConfiguration,
|
|
$$McpConfigurationsTableFilterComposer,
|
|
$$McpConfigurationsTableOrderingComposer,
|
|
$$McpConfigurationsTableAnnotationComposer,
|
|
$$McpConfigurationsTableCreateCompanionBuilder,
|
|
$$McpConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
McpConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$McpConfigurationsTable,
|
|
McpConfiguration
|
|
>,
|
|
),
|
|
McpConfiguration,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$McpConfigurationsTableTableManager(
|
|
_$AppDatabase db,
|
|
$McpConfigurationsTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$McpConfigurationsTableFilterComposer($db: db, $table: table),
|
|
createOrderingComposer: () =>
|
|
$$McpConfigurationsTableOrderingComposer($db: db, $table: table),
|
|
createComputedFieldComposer: () =>
|
|
$$McpConfigurationsTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
Value<bool> enabled = const Value.absent(),
|
|
Value<int> port = const Value.absent(),
|
|
Value<String> token = const Value.absent(),
|
|
}) => McpConfigurationsCompanion(
|
|
id: id,
|
|
enabled: enabled,
|
|
port: port,
|
|
token: token,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
required bool enabled,
|
|
required int port,
|
|
required String token,
|
|
}) => McpConfigurationsCompanion.insert(
|
|
id: id,
|
|
enabled: enabled,
|
|
port: port,
|
|
token: token,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<$McpConfigurationsTable, McpConfiguration>(table),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$McpConfigurationsTable,
|
|
McpConfiguration
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$McpConfigurationsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$McpConfigurationsTable,
|
|
McpConfiguration,
|
|
$$McpConfigurationsTableFilterComposer,
|
|
$$McpConfigurationsTableOrderingComposer,
|
|
$$McpConfigurationsTableAnnotationComposer,
|
|
$$McpConfigurationsTableCreateCompanionBuilder,
|
|
$$McpConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
McpConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$McpConfigurationsTable,
|
|
McpConfiguration
|
|
>,
|
|
),
|
|
McpConfiguration,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$AppearanceConfigurationsTableCreateCompanionBuilder =
|
|
AppearanceConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
required String themeMode,
|
|
Value<String> palette,
|
|
Value<String> timelineRulerLayout,
|
|
});
|
|
typedef $$AppearanceConfigurationsTableUpdateCompanionBuilder =
|
|
AppearanceConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
Value<String> themeMode,
|
|
Value<String> palette,
|
|
Value<String> timelineRulerLayout,
|
|
});
|
|
|
|
class $$AppearanceConfigurationsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $AppearanceConfigurationsTable> {
|
|
$$AppearanceConfigurationsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get themeMode => $composableBuilder(
|
|
column: $table.themeMode,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get palette => $composableBuilder(
|
|
column: $table.palette,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get timelineRulerLayout => $composableBuilder(
|
|
column: $table.timelineRulerLayout,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$AppearanceConfigurationsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $AppearanceConfigurationsTable> {
|
|
$$AppearanceConfigurationsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get themeMode => $composableBuilder(
|
|
column: $table.themeMode,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get palette => $composableBuilder(
|
|
column: $table.palette,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get timelineRulerLayout => $composableBuilder(
|
|
column: $table.timelineRulerLayout,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$AppearanceConfigurationsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $AppearanceConfigurationsTable> {
|
|
$$AppearanceConfigurationsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<int> get id =>
|
|
$composableBuilder(column: $table.id, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get themeMode =>
|
|
$composableBuilder(column: $table.themeMode, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get palette =>
|
|
$composableBuilder(column: $table.palette, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get timelineRulerLayout => $composableBuilder(
|
|
column: $table.timelineRulerLayout,
|
|
builder: (column) => column,
|
|
);
|
|
}
|
|
|
|
class $$AppearanceConfigurationsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$AppearanceConfigurationsTable,
|
|
AppearanceConfiguration,
|
|
$$AppearanceConfigurationsTableFilterComposer,
|
|
$$AppearanceConfigurationsTableOrderingComposer,
|
|
$$AppearanceConfigurationsTableAnnotationComposer,
|
|
$$AppearanceConfigurationsTableCreateCompanionBuilder,
|
|
$$AppearanceConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
AppearanceConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$AppearanceConfigurationsTable,
|
|
AppearanceConfiguration
|
|
>,
|
|
),
|
|
AppearanceConfiguration,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$AppearanceConfigurationsTableTableManager(
|
|
_$AppDatabase db,
|
|
$AppearanceConfigurationsTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$AppearanceConfigurationsTableFilterComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createOrderingComposer: () =>
|
|
$$AppearanceConfigurationsTableOrderingComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createComputedFieldComposer: () =>
|
|
$$AppearanceConfigurationsTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
Value<String> themeMode = const Value.absent(),
|
|
Value<String> palette = const Value.absent(),
|
|
Value<String> timelineRulerLayout = const Value.absent(),
|
|
}) => AppearanceConfigurationsCompanion(
|
|
id: id,
|
|
themeMode: themeMode,
|
|
palette: palette,
|
|
timelineRulerLayout: timelineRulerLayout,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
required String themeMode,
|
|
Value<String> palette = const Value.absent(),
|
|
Value<String> timelineRulerLayout = const Value.absent(),
|
|
}) => AppearanceConfigurationsCompanion.insert(
|
|
id: id,
|
|
themeMode: themeMode,
|
|
palette: palette,
|
|
timelineRulerLayout: timelineRulerLayout,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<
|
|
$AppearanceConfigurationsTable,
|
|
AppearanceConfiguration
|
|
>(table),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$AppearanceConfigurationsTable,
|
|
AppearanceConfiguration
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$AppearanceConfigurationsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$AppearanceConfigurationsTable,
|
|
AppearanceConfiguration,
|
|
$$AppearanceConfigurationsTableFilterComposer,
|
|
$$AppearanceConfigurationsTableOrderingComposer,
|
|
$$AppearanceConfigurationsTableAnnotationComposer,
|
|
$$AppearanceConfigurationsTableCreateCompanionBuilder,
|
|
$$AppearanceConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
AppearanceConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$AppearanceConfigurationsTable,
|
|
AppearanceConfiguration
|
|
>,
|
|
),
|
|
AppearanceConfiguration,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$LanguageConfigurationsTableCreateCompanionBuilder =
|
|
LanguageConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
required String language,
|
|
});
|
|
typedef $$LanguageConfigurationsTableUpdateCompanionBuilder =
|
|
LanguageConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
Value<String> language,
|
|
});
|
|
|
|
class $$LanguageConfigurationsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $LanguageConfigurationsTable> {
|
|
$$LanguageConfigurationsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get language => $composableBuilder(
|
|
column: $table.language,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$LanguageConfigurationsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $LanguageConfigurationsTable> {
|
|
$$LanguageConfigurationsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get language => $composableBuilder(
|
|
column: $table.language,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$LanguageConfigurationsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $LanguageConfigurationsTable> {
|
|
$$LanguageConfigurationsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<int> get id =>
|
|
$composableBuilder(column: $table.id, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get language =>
|
|
$composableBuilder(column: $table.language, builder: (column) => column);
|
|
}
|
|
|
|
class $$LanguageConfigurationsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$LanguageConfigurationsTable,
|
|
LanguageConfiguration,
|
|
$$LanguageConfigurationsTableFilterComposer,
|
|
$$LanguageConfigurationsTableOrderingComposer,
|
|
$$LanguageConfigurationsTableAnnotationComposer,
|
|
$$LanguageConfigurationsTableCreateCompanionBuilder,
|
|
$$LanguageConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
LanguageConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$LanguageConfigurationsTable,
|
|
LanguageConfiguration
|
|
>,
|
|
),
|
|
LanguageConfiguration,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$LanguageConfigurationsTableTableManager(
|
|
_$AppDatabase db,
|
|
$LanguageConfigurationsTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$LanguageConfigurationsTableFilterComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createOrderingComposer: () =>
|
|
$$LanguageConfigurationsTableOrderingComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createComputedFieldComposer: () =>
|
|
$$LanguageConfigurationsTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback: ({
|
|
Value<int> id = const Value.absent(),
|
|
Value<String> language = const Value.absent(),
|
|
}) => LanguageConfigurationsCompanion(id: id, language: language),
|
|
createCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
required String language,
|
|
}) => LanguageConfigurationsCompanion.insert(
|
|
id: id,
|
|
language: language,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<
|
|
$LanguageConfigurationsTable,
|
|
LanguageConfiguration
|
|
>(table),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$LanguageConfigurationsTable,
|
|
LanguageConfiguration
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$LanguageConfigurationsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$LanguageConfigurationsTable,
|
|
LanguageConfiguration,
|
|
$$LanguageConfigurationsTableFilterComposer,
|
|
$$LanguageConfigurationsTableOrderingComposer,
|
|
$$LanguageConfigurationsTableAnnotationComposer,
|
|
$$LanguageConfigurationsTableCreateCompanionBuilder,
|
|
$$LanguageConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
LanguageConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$LanguageConfigurationsTable,
|
|
LanguageConfiguration
|
|
>,
|
|
),
|
|
LanguageConfiguration,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$ConversationLocationConfigurationsTableCreateCompanionBuilder =
|
|
ConversationLocationConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
required String directory,
|
|
});
|
|
typedef $$ConversationLocationConfigurationsTableUpdateCompanionBuilder =
|
|
ConversationLocationConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
Value<String> directory,
|
|
});
|
|
|
|
class $$ConversationLocationConfigurationsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $ConversationLocationConfigurationsTable> {
|
|
$$ConversationLocationConfigurationsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get directory => $composableBuilder(
|
|
column: $table.directory,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$ConversationLocationConfigurationsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $ConversationLocationConfigurationsTable> {
|
|
$$ConversationLocationConfigurationsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get directory => $composableBuilder(
|
|
column: $table.directory,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$ConversationLocationConfigurationsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $ConversationLocationConfigurationsTable> {
|
|
$$ConversationLocationConfigurationsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<int> get id =>
|
|
$composableBuilder(column: $table.id, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get directory =>
|
|
$composableBuilder(column: $table.directory, builder: (column) => column);
|
|
}
|
|
|
|
class $$ConversationLocationConfigurationsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$ConversationLocationConfigurationsTable,
|
|
ConversationLocationConfiguration,
|
|
$$ConversationLocationConfigurationsTableFilterComposer,
|
|
$$ConversationLocationConfigurationsTableOrderingComposer,
|
|
$$ConversationLocationConfigurationsTableAnnotationComposer,
|
|
$$ConversationLocationConfigurationsTableCreateCompanionBuilder,
|
|
$$ConversationLocationConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
ConversationLocationConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ConversationLocationConfigurationsTable,
|
|
ConversationLocationConfiguration
|
|
>,
|
|
),
|
|
ConversationLocationConfiguration,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$ConversationLocationConfigurationsTableTableManager(
|
|
_$AppDatabase db,
|
|
$ConversationLocationConfigurationsTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$ConversationLocationConfigurationsTableFilterComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createOrderingComposer: () =>
|
|
$$ConversationLocationConfigurationsTableOrderingComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createComputedFieldComposer: () =>
|
|
$$ConversationLocationConfigurationsTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
Value<String> directory = const Value.absent(),
|
|
}) => ConversationLocationConfigurationsCompanion(
|
|
id: id,
|
|
directory: directory,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
required String directory,
|
|
}) => ConversationLocationConfigurationsCompanion.insert(
|
|
id: id,
|
|
directory: directory,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<
|
|
$ConversationLocationConfigurationsTable,
|
|
ConversationLocationConfiguration
|
|
>(table),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ConversationLocationConfigurationsTable,
|
|
ConversationLocationConfiguration
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$ConversationLocationConfigurationsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$ConversationLocationConfigurationsTable,
|
|
ConversationLocationConfiguration,
|
|
$$ConversationLocationConfigurationsTableFilterComposer,
|
|
$$ConversationLocationConfigurationsTableOrderingComposer,
|
|
$$ConversationLocationConfigurationsTableAnnotationComposer,
|
|
$$ConversationLocationConfigurationsTableCreateCompanionBuilder,
|
|
$$ConversationLocationConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
ConversationLocationConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ConversationLocationConfigurationsTable,
|
|
ConversationLocationConfiguration
|
|
>,
|
|
),
|
|
ConversationLocationConfiguration,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$ProjectLocationConfigurationsTableCreateCompanionBuilder =
|
|
ProjectLocationConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
required String directory,
|
|
});
|
|
typedef $$ProjectLocationConfigurationsTableUpdateCompanionBuilder =
|
|
ProjectLocationConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
Value<String> directory,
|
|
});
|
|
|
|
class $$ProjectLocationConfigurationsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $ProjectLocationConfigurationsTable> {
|
|
$$ProjectLocationConfigurationsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get directory => $composableBuilder(
|
|
column: $table.directory,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$ProjectLocationConfigurationsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $ProjectLocationConfigurationsTable> {
|
|
$$ProjectLocationConfigurationsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get directory => $composableBuilder(
|
|
column: $table.directory,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$ProjectLocationConfigurationsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $ProjectLocationConfigurationsTable> {
|
|
$$ProjectLocationConfigurationsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<int> get id =>
|
|
$composableBuilder(column: $table.id, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get directory =>
|
|
$composableBuilder(column: $table.directory, builder: (column) => column);
|
|
}
|
|
|
|
class $$ProjectLocationConfigurationsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$ProjectLocationConfigurationsTable,
|
|
ProjectLocationConfiguration,
|
|
$$ProjectLocationConfigurationsTableFilterComposer,
|
|
$$ProjectLocationConfigurationsTableOrderingComposer,
|
|
$$ProjectLocationConfigurationsTableAnnotationComposer,
|
|
$$ProjectLocationConfigurationsTableCreateCompanionBuilder,
|
|
$$ProjectLocationConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
ProjectLocationConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ProjectLocationConfigurationsTable,
|
|
ProjectLocationConfiguration
|
|
>,
|
|
),
|
|
ProjectLocationConfiguration,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$ProjectLocationConfigurationsTableTableManager(
|
|
_$AppDatabase db,
|
|
$ProjectLocationConfigurationsTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$ProjectLocationConfigurationsTableFilterComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createOrderingComposer: () =>
|
|
$$ProjectLocationConfigurationsTableOrderingComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createComputedFieldComposer: () =>
|
|
$$ProjectLocationConfigurationsTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
Value<String> directory = const Value.absent(),
|
|
}) => ProjectLocationConfigurationsCompanion(
|
|
id: id,
|
|
directory: directory,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
required String directory,
|
|
}) => ProjectLocationConfigurationsCompanion.insert(
|
|
id: id,
|
|
directory: directory,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<
|
|
$ProjectLocationConfigurationsTable,
|
|
ProjectLocationConfiguration
|
|
>(table),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ProjectLocationConfigurationsTable,
|
|
ProjectLocationConfiguration
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$ProjectLocationConfigurationsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$ProjectLocationConfigurationsTable,
|
|
ProjectLocationConfiguration,
|
|
$$ProjectLocationConfigurationsTableFilterComposer,
|
|
$$ProjectLocationConfigurationsTableOrderingComposer,
|
|
$$ProjectLocationConfigurationsTableAnnotationComposer,
|
|
$$ProjectLocationConfigurationsTableCreateCompanionBuilder,
|
|
$$ProjectLocationConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
ProjectLocationConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ProjectLocationConfigurationsTable,
|
|
ProjectLocationConfiguration
|
|
>,
|
|
),
|
|
ProjectLocationConfiguration,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$ResourceLocationConfigurationsTableCreateCompanionBuilder =
|
|
ResourceLocationConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
required String directory,
|
|
});
|
|
typedef $$ResourceLocationConfigurationsTableUpdateCompanionBuilder =
|
|
ResourceLocationConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
Value<String> directory,
|
|
});
|
|
|
|
class $$ResourceLocationConfigurationsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $ResourceLocationConfigurationsTable> {
|
|
$$ResourceLocationConfigurationsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get directory => $composableBuilder(
|
|
column: $table.directory,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$ResourceLocationConfigurationsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $ResourceLocationConfigurationsTable> {
|
|
$$ResourceLocationConfigurationsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get directory => $composableBuilder(
|
|
column: $table.directory,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$ResourceLocationConfigurationsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $ResourceLocationConfigurationsTable> {
|
|
$$ResourceLocationConfigurationsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<int> get id =>
|
|
$composableBuilder(column: $table.id, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get directory =>
|
|
$composableBuilder(column: $table.directory, builder: (column) => column);
|
|
}
|
|
|
|
class $$ResourceLocationConfigurationsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$ResourceLocationConfigurationsTable,
|
|
ResourceLocationConfiguration,
|
|
$$ResourceLocationConfigurationsTableFilterComposer,
|
|
$$ResourceLocationConfigurationsTableOrderingComposer,
|
|
$$ResourceLocationConfigurationsTableAnnotationComposer,
|
|
$$ResourceLocationConfigurationsTableCreateCompanionBuilder,
|
|
$$ResourceLocationConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
ResourceLocationConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ResourceLocationConfigurationsTable,
|
|
ResourceLocationConfiguration
|
|
>,
|
|
),
|
|
ResourceLocationConfiguration,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$ResourceLocationConfigurationsTableTableManager(
|
|
_$AppDatabase db,
|
|
$ResourceLocationConfigurationsTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$ResourceLocationConfigurationsTableFilterComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createOrderingComposer: () =>
|
|
$$ResourceLocationConfigurationsTableOrderingComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createComputedFieldComposer: () =>
|
|
$$ResourceLocationConfigurationsTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
Value<String> directory = const Value.absent(),
|
|
}) => ResourceLocationConfigurationsCompanion(
|
|
id: id,
|
|
directory: directory,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
required String directory,
|
|
}) => ResourceLocationConfigurationsCompanion.insert(
|
|
id: id,
|
|
directory: directory,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<
|
|
$ResourceLocationConfigurationsTable,
|
|
ResourceLocationConfiguration
|
|
>(table),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ResourceLocationConfigurationsTable,
|
|
ResourceLocationConfiguration
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$ResourceLocationConfigurationsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$ResourceLocationConfigurationsTable,
|
|
ResourceLocationConfiguration,
|
|
$$ResourceLocationConfigurationsTableFilterComposer,
|
|
$$ResourceLocationConfigurationsTableOrderingComposer,
|
|
$$ResourceLocationConfigurationsTableAnnotationComposer,
|
|
$$ResourceLocationConfigurationsTableCreateCompanionBuilder,
|
|
$$ResourceLocationConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
ResourceLocationConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ResourceLocationConfigurationsTable,
|
|
ResourceLocationConfiguration
|
|
>,
|
|
),
|
|
ResourceLocationConfiguration,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$AgentConfigurationsTableCreateCompanionBuilder =
|
|
AgentConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
required bool enabled,
|
|
Value<String?> selectedProviderId,
|
|
Value<String?> selectedModelId,
|
|
required int revision,
|
|
});
|
|
typedef $$AgentConfigurationsTableUpdateCompanionBuilder =
|
|
AgentConfigurationsCompanion Function({
|
|
Value<int> id,
|
|
Value<bool> enabled,
|
|
Value<String?> selectedProviderId,
|
|
Value<String?> selectedModelId,
|
|
Value<int> revision,
|
|
});
|
|
|
|
class $$AgentConfigurationsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $AgentConfigurationsTable> {
|
|
$$AgentConfigurationsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<bool> get enabled => $composableBuilder(
|
|
column: $table.enabled,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get selectedProviderId => $composableBuilder(
|
|
column: $table.selectedProviderId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get selectedModelId => $composableBuilder(
|
|
column: $table.selectedModelId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<int> get revision => $composableBuilder(
|
|
column: $table.revision,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$AgentConfigurationsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $AgentConfigurationsTable> {
|
|
$$AgentConfigurationsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<bool> get enabled => $composableBuilder(
|
|
column: $table.enabled,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get selectedProviderId => $composableBuilder(
|
|
column: $table.selectedProviderId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get selectedModelId => $composableBuilder(
|
|
column: $table.selectedModelId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<int> get revision => $composableBuilder(
|
|
column: $table.revision,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$AgentConfigurationsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $AgentConfigurationsTable> {
|
|
$$AgentConfigurationsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<int> get id =>
|
|
$composableBuilder(column: $table.id, builder: (column) => column);
|
|
|
|
GeneratedColumn<bool> get enabled =>
|
|
$composableBuilder(column: $table.enabled, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get selectedProviderId => $composableBuilder(
|
|
column: $table.selectedProviderId,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<String> get selectedModelId => $composableBuilder(
|
|
column: $table.selectedModelId,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<int> get revision =>
|
|
$composableBuilder(column: $table.revision, builder: (column) => column);
|
|
}
|
|
|
|
class $$AgentConfigurationsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$AgentConfigurationsTable,
|
|
AgentConfiguration,
|
|
$$AgentConfigurationsTableFilterComposer,
|
|
$$AgentConfigurationsTableOrderingComposer,
|
|
$$AgentConfigurationsTableAnnotationComposer,
|
|
$$AgentConfigurationsTableCreateCompanionBuilder,
|
|
$$AgentConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
AgentConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$AgentConfigurationsTable,
|
|
AgentConfiguration
|
|
>,
|
|
),
|
|
AgentConfiguration,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$AgentConfigurationsTableTableManager(
|
|
_$AppDatabase db,
|
|
$AgentConfigurationsTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$AgentConfigurationsTableFilterComposer($db: db, $table: table),
|
|
createOrderingComposer: () =>
|
|
$$AgentConfigurationsTableOrderingComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createComputedFieldComposer: () =>
|
|
$$AgentConfigurationsTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
Value<bool> enabled = const Value.absent(),
|
|
Value<String?> selectedProviderId = const Value.absent(),
|
|
Value<String?> selectedModelId = const Value.absent(),
|
|
Value<int> revision = const Value.absent(),
|
|
}) => AgentConfigurationsCompanion(
|
|
id: id,
|
|
enabled: enabled,
|
|
selectedProviderId: selectedProviderId,
|
|
selectedModelId: selectedModelId,
|
|
revision: revision,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
Value<int> id = const Value.absent(),
|
|
required bool enabled,
|
|
Value<String?> selectedProviderId = const Value.absent(),
|
|
Value<String?> selectedModelId = const Value.absent(),
|
|
required int revision,
|
|
}) => AgentConfigurationsCompanion.insert(
|
|
id: id,
|
|
enabled: enabled,
|
|
selectedProviderId: selectedProviderId,
|
|
selectedModelId: selectedModelId,
|
|
revision: revision,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<$AgentConfigurationsTable, AgentConfiguration>(
|
|
table,
|
|
),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$AgentConfigurationsTable,
|
|
AgentConfiguration
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$AgentConfigurationsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$AgentConfigurationsTable,
|
|
AgentConfiguration,
|
|
$$AgentConfigurationsTableFilterComposer,
|
|
$$AgentConfigurationsTableOrderingComposer,
|
|
$$AgentConfigurationsTableAnnotationComposer,
|
|
$$AgentConfigurationsTableCreateCompanionBuilder,
|
|
$$AgentConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
AgentConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$AgentConfigurationsTable,
|
|
AgentConfiguration
|
|
>,
|
|
),
|
|
AgentConfiguration,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$AgentProvidersTableCreateCompanionBuilder =
|
|
AgentProvidersCompanion Function({
|
|
Value<bool> enabled,
|
|
required String id,
|
|
required String name,
|
|
required String apiType,
|
|
required String baseUrl,
|
|
Value<String?> credentialId,
|
|
Value<int> rowid,
|
|
});
|
|
typedef $$AgentProvidersTableUpdateCompanionBuilder =
|
|
AgentProvidersCompanion Function({
|
|
Value<bool> enabled,
|
|
Value<String> id,
|
|
Value<String> name,
|
|
Value<String> apiType,
|
|
Value<String> baseUrl,
|
|
Value<String?> credentialId,
|
|
Value<int> rowid,
|
|
});
|
|
|
|
class $$AgentProvidersTableFilterComposer
|
|
extends Composer<_$AppDatabase, $AgentProvidersTable> {
|
|
$$AgentProvidersTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<bool> get enabled => $composableBuilder(
|
|
column: $table.enabled,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get name => $composableBuilder(
|
|
column: $table.name,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get apiType => $composableBuilder(
|
|
column: $table.apiType,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get baseUrl => $composableBuilder(
|
|
column: $table.baseUrl,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get credentialId => $composableBuilder(
|
|
column: $table.credentialId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$AgentProvidersTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $AgentProvidersTable> {
|
|
$$AgentProvidersTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<bool> get enabled => $composableBuilder(
|
|
column: $table.enabled,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get name => $composableBuilder(
|
|
column: $table.name,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get apiType => $composableBuilder(
|
|
column: $table.apiType,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get baseUrl => $composableBuilder(
|
|
column: $table.baseUrl,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get credentialId => $composableBuilder(
|
|
column: $table.credentialId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$AgentProvidersTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $AgentProvidersTable> {
|
|
$$AgentProvidersTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<bool> get enabled =>
|
|
$composableBuilder(column: $table.enabled, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get id =>
|
|
$composableBuilder(column: $table.id, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get name =>
|
|
$composableBuilder(column: $table.name, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get apiType =>
|
|
$composableBuilder(column: $table.apiType, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get baseUrl =>
|
|
$composableBuilder(column: $table.baseUrl, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get credentialId => $composableBuilder(
|
|
column: $table.credentialId,
|
|
builder: (column) => column,
|
|
);
|
|
}
|
|
|
|
class $$AgentProvidersTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$AgentProvidersTable,
|
|
AgentProvider,
|
|
$$AgentProvidersTableFilterComposer,
|
|
$$AgentProvidersTableOrderingComposer,
|
|
$$AgentProvidersTableAnnotationComposer,
|
|
$$AgentProvidersTableCreateCompanionBuilder,
|
|
$$AgentProvidersTableUpdateCompanionBuilder,
|
|
(
|
|
AgentProvider,
|
|
BaseReferences<_$AppDatabase, $AgentProvidersTable, AgentProvider>,
|
|
),
|
|
AgentProvider,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$AgentProvidersTableTableManager(
|
|
_$AppDatabase db,
|
|
$AgentProvidersTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$AgentProvidersTableFilterComposer($db: db, $table: table),
|
|
createOrderingComposer: () =>
|
|
$$AgentProvidersTableOrderingComposer($db: db, $table: table),
|
|
createComputedFieldComposer: () =>
|
|
$$AgentProvidersTableAnnotationComposer($db: db, $table: table),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<bool> enabled = const Value.absent(),
|
|
Value<String> id = const Value.absent(),
|
|
Value<String> name = const Value.absent(),
|
|
Value<String> apiType = const Value.absent(),
|
|
Value<String> baseUrl = const Value.absent(),
|
|
Value<String?> credentialId = const Value.absent(),
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => AgentProvidersCompanion(
|
|
enabled: enabled,
|
|
id: id,
|
|
name: name,
|
|
apiType: apiType,
|
|
baseUrl: baseUrl,
|
|
credentialId: credentialId,
|
|
rowid: rowid,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
Value<bool> enabled = const Value.absent(),
|
|
required String id,
|
|
required String name,
|
|
required String apiType,
|
|
required String baseUrl,
|
|
Value<String?> credentialId = const Value.absent(),
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => AgentProvidersCompanion.insert(
|
|
enabled: enabled,
|
|
id: id,
|
|
name: name,
|
|
apiType: apiType,
|
|
baseUrl: baseUrl,
|
|
credentialId: credentialId,
|
|
rowid: rowid,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<$AgentProvidersTable, AgentProvider>(table),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$AgentProvidersTable,
|
|
AgentProvider
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$AgentProvidersTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$AgentProvidersTable,
|
|
AgentProvider,
|
|
$$AgentProvidersTableFilterComposer,
|
|
$$AgentProvidersTableOrderingComposer,
|
|
$$AgentProvidersTableAnnotationComposer,
|
|
$$AgentProvidersTableCreateCompanionBuilder,
|
|
$$AgentProvidersTableUpdateCompanionBuilder,
|
|
(
|
|
AgentProvider,
|
|
BaseReferences<_$AppDatabase, $AgentProvidersTable, AgentProvider>,
|
|
),
|
|
AgentProvider,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$AgentModelsTableCreateCompanionBuilder =
|
|
AgentModelsCompanion Function({
|
|
required String providerId,
|
|
required String modelId,
|
|
Value<int?> contextWindow,
|
|
Value<int?> maxOutputTokens,
|
|
Value<int> rowid,
|
|
});
|
|
typedef $$AgentModelsTableUpdateCompanionBuilder =
|
|
AgentModelsCompanion Function({
|
|
Value<String> providerId,
|
|
Value<String> modelId,
|
|
Value<int?> contextWindow,
|
|
Value<int?> maxOutputTokens,
|
|
Value<int> rowid,
|
|
});
|
|
|
|
class $$AgentModelsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $AgentModelsTable> {
|
|
$$AgentModelsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<String> get providerId => $composableBuilder(
|
|
column: $table.providerId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get modelId => $composableBuilder(
|
|
column: $table.modelId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<int> get contextWindow => $composableBuilder(
|
|
column: $table.contextWindow,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<int> get maxOutputTokens => $composableBuilder(
|
|
column: $table.maxOutputTokens,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$AgentModelsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $AgentModelsTable> {
|
|
$$AgentModelsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<String> get providerId => $composableBuilder(
|
|
column: $table.providerId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get modelId => $composableBuilder(
|
|
column: $table.modelId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<int> get contextWindow => $composableBuilder(
|
|
column: $table.contextWindow,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<int> get maxOutputTokens => $composableBuilder(
|
|
column: $table.maxOutputTokens,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$AgentModelsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $AgentModelsTable> {
|
|
$$AgentModelsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<String> get providerId => $composableBuilder(
|
|
column: $table.providerId,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<String> get modelId =>
|
|
$composableBuilder(column: $table.modelId, builder: (column) => column);
|
|
|
|
GeneratedColumn<int> get contextWindow => $composableBuilder(
|
|
column: $table.contextWindow,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<int> get maxOutputTokens => $composableBuilder(
|
|
column: $table.maxOutputTokens,
|
|
builder: (column) => column,
|
|
);
|
|
}
|
|
|
|
class $$AgentModelsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$AgentModelsTable,
|
|
AgentModel,
|
|
$$AgentModelsTableFilterComposer,
|
|
$$AgentModelsTableOrderingComposer,
|
|
$$AgentModelsTableAnnotationComposer,
|
|
$$AgentModelsTableCreateCompanionBuilder,
|
|
$$AgentModelsTableUpdateCompanionBuilder,
|
|
(
|
|
AgentModel,
|
|
BaseReferences<_$AppDatabase, $AgentModelsTable, AgentModel>,
|
|
),
|
|
AgentModel,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$AgentModelsTableTableManager(_$AppDatabase db, $AgentModelsTable table)
|
|
: super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$AgentModelsTableFilterComposer($db: db, $table: table),
|
|
createOrderingComposer: () =>
|
|
$$AgentModelsTableOrderingComposer($db: db, $table: table),
|
|
createComputedFieldComposer: () =>
|
|
$$AgentModelsTableAnnotationComposer($db: db, $table: table),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<String> providerId = const Value.absent(),
|
|
Value<String> modelId = const Value.absent(),
|
|
Value<int?> contextWindow = const Value.absent(),
|
|
Value<int?> maxOutputTokens = const Value.absent(),
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => AgentModelsCompanion(
|
|
providerId: providerId,
|
|
modelId: modelId,
|
|
contextWindow: contextWindow,
|
|
maxOutputTokens: maxOutputTokens,
|
|
rowid: rowid,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
required String providerId,
|
|
required String modelId,
|
|
Value<int?> contextWindow = const Value.absent(),
|
|
Value<int?> maxOutputTokens = const Value.absent(),
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => AgentModelsCompanion.insert(
|
|
providerId: providerId,
|
|
modelId: modelId,
|
|
contextWindow: contextWindow,
|
|
maxOutputTokens: maxOutputTokens,
|
|
rowid: rowid,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<$AgentModelsTable, AgentModel>(table),
|
|
BaseReferences<_$AppDatabase, $AgentModelsTable, AgentModel>(
|
|
db,
|
|
table,
|
|
e,
|
|
),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$AgentModelsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$AgentModelsTable,
|
|
AgentModel,
|
|
$$AgentModelsTableFilterComposer,
|
|
$$AgentModelsTableOrderingComposer,
|
|
$$AgentModelsTableAnnotationComposer,
|
|
$$AgentModelsTableCreateCompanionBuilder,
|
|
$$AgentModelsTableUpdateCompanionBuilder,
|
|
(
|
|
AgentModel,
|
|
BaseReferences<_$AppDatabase, $AgentModelsTable, AgentModel>,
|
|
),
|
|
AgentModel,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$WorkspaceViewConfigurationsTableCreateCompanionBuilder =
|
|
WorkspaceViewConfigurationsCompanion Function({
|
|
Value<String> mode,
|
|
Value<int> id,
|
|
Value<String?> activeProjectId,
|
|
required bool sidebarCollapsed,
|
|
Value<double?> sidebarWidth,
|
|
});
|
|
typedef $$WorkspaceViewConfigurationsTableUpdateCompanionBuilder =
|
|
WorkspaceViewConfigurationsCompanion Function({
|
|
Value<String> mode,
|
|
Value<int> id,
|
|
Value<String?> activeProjectId,
|
|
Value<bool> sidebarCollapsed,
|
|
Value<double?> sidebarWidth,
|
|
});
|
|
|
|
class $$WorkspaceViewConfigurationsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $WorkspaceViewConfigurationsTable> {
|
|
$$WorkspaceViewConfigurationsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<String> get mode => $composableBuilder(
|
|
column: $table.mode,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get activeProjectId => $composableBuilder(
|
|
column: $table.activeProjectId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<bool> get sidebarCollapsed => $composableBuilder(
|
|
column: $table.sidebarCollapsed,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<double> get sidebarWidth => $composableBuilder(
|
|
column: $table.sidebarWidth,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$WorkspaceViewConfigurationsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $WorkspaceViewConfigurationsTable> {
|
|
$$WorkspaceViewConfigurationsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<String> get mode => $composableBuilder(
|
|
column: $table.mode,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<int> get id => $composableBuilder(
|
|
column: $table.id,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get activeProjectId => $composableBuilder(
|
|
column: $table.activeProjectId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<bool> get sidebarCollapsed => $composableBuilder(
|
|
column: $table.sidebarCollapsed,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<double> get sidebarWidth => $composableBuilder(
|
|
column: $table.sidebarWidth,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$WorkspaceViewConfigurationsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $WorkspaceViewConfigurationsTable> {
|
|
$$WorkspaceViewConfigurationsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<String> get mode =>
|
|
$composableBuilder(column: $table.mode, builder: (column) => column);
|
|
|
|
GeneratedColumn<int> get id =>
|
|
$composableBuilder(column: $table.id, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get activeProjectId => $composableBuilder(
|
|
column: $table.activeProjectId,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<bool> get sidebarCollapsed => $composableBuilder(
|
|
column: $table.sidebarCollapsed,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<double> get sidebarWidth => $composableBuilder(
|
|
column: $table.sidebarWidth,
|
|
builder: (column) => column,
|
|
);
|
|
}
|
|
|
|
class $$WorkspaceViewConfigurationsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$WorkspaceViewConfigurationsTable,
|
|
WorkspaceViewConfiguration,
|
|
$$WorkspaceViewConfigurationsTableFilterComposer,
|
|
$$WorkspaceViewConfigurationsTableOrderingComposer,
|
|
$$WorkspaceViewConfigurationsTableAnnotationComposer,
|
|
$$WorkspaceViewConfigurationsTableCreateCompanionBuilder,
|
|
$$WorkspaceViewConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
WorkspaceViewConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$WorkspaceViewConfigurationsTable,
|
|
WorkspaceViewConfiguration
|
|
>,
|
|
),
|
|
WorkspaceViewConfiguration,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$WorkspaceViewConfigurationsTableTableManager(
|
|
_$AppDatabase db,
|
|
$WorkspaceViewConfigurationsTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$WorkspaceViewConfigurationsTableFilterComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createOrderingComposer: () =>
|
|
$$WorkspaceViewConfigurationsTableOrderingComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createComputedFieldComposer: () =>
|
|
$$WorkspaceViewConfigurationsTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<String> mode = const Value.absent(),
|
|
Value<int> id = const Value.absent(),
|
|
Value<String?> activeProjectId = const Value.absent(),
|
|
Value<bool> sidebarCollapsed = const Value.absent(),
|
|
Value<double?> sidebarWidth = const Value.absent(),
|
|
}) => WorkspaceViewConfigurationsCompanion(
|
|
mode: mode,
|
|
id: id,
|
|
activeProjectId: activeProjectId,
|
|
sidebarCollapsed: sidebarCollapsed,
|
|
sidebarWidth: sidebarWidth,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
Value<String> mode = const Value.absent(),
|
|
Value<int> id = const Value.absent(),
|
|
Value<String?> activeProjectId = const Value.absent(),
|
|
required bool sidebarCollapsed,
|
|
Value<double?> sidebarWidth = const Value.absent(),
|
|
}) => WorkspaceViewConfigurationsCompanion.insert(
|
|
mode: mode,
|
|
id: id,
|
|
activeProjectId: activeProjectId,
|
|
sidebarCollapsed: sidebarCollapsed,
|
|
sidebarWidth: sidebarWidth,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<
|
|
$WorkspaceViewConfigurationsTable,
|
|
WorkspaceViewConfiguration
|
|
>(table),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$WorkspaceViewConfigurationsTable,
|
|
WorkspaceViewConfiguration
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$WorkspaceViewConfigurationsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$WorkspaceViewConfigurationsTable,
|
|
WorkspaceViewConfiguration,
|
|
$$WorkspaceViewConfigurationsTableFilterComposer,
|
|
$$WorkspaceViewConfigurationsTableOrderingComposer,
|
|
$$WorkspaceViewConfigurationsTableAnnotationComposer,
|
|
$$WorkspaceViewConfigurationsTableCreateCompanionBuilder,
|
|
$$WorkspaceViewConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
WorkspaceViewConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$WorkspaceViewConfigurationsTable,
|
|
WorkspaceViewConfiguration
|
|
>,
|
|
),
|
|
WorkspaceViewConfiguration,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$ProjectViewConfigurationsTableCreateCompanionBuilder =
|
|
ProjectViewConfigurationsCompanion Function({
|
|
required String projectId,
|
|
required bool propertiesOpen,
|
|
Value<double?> timelineHeight,
|
|
Value<double?> mediaWidth,
|
|
Value<int> rowid,
|
|
});
|
|
typedef $$ProjectViewConfigurationsTableUpdateCompanionBuilder =
|
|
ProjectViewConfigurationsCompanion Function({
|
|
Value<String> projectId,
|
|
Value<bool> propertiesOpen,
|
|
Value<double?> timelineHeight,
|
|
Value<double?> mediaWidth,
|
|
Value<int> rowid,
|
|
});
|
|
|
|
class $$ProjectViewConfigurationsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $ProjectViewConfigurationsTable> {
|
|
$$ProjectViewConfigurationsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<String> get projectId => $composableBuilder(
|
|
column: $table.projectId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<bool> get propertiesOpen => $composableBuilder(
|
|
column: $table.propertiesOpen,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<double> get timelineHeight => $composableBuilder(
|
|
column: $table.timelineHeight,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<double> get mediaWidth => $composableBuilder(
|
|
column: $table.mediaWidth,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$ProjectViewConfigurationsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $ProjectViewConfigurationsTable> {
|
|
$$ProjectViewConfigurationsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<String> get projectId => $composableBuilder(
|
|
column: $table.projectId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<bool> get propertiesOpen => $composableBuilder(
|
|
column: $table.propertiesOpen,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<double> get timelineHeight => $composableBuilder(
|
|
column: $table.timelineHeight,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<double> get mediaWidth => $composableBuilder(
|
|
column: $table.mediaWidth,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$ProjectViewConfigurationsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $ProjectViewConfigurationsTable> {
|
|
$$ProjectViewConfigurationsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<String> get projectId =>
|
|
$composableBuilder(column: $table.projectId, builder: (column) => column);
|
|
|
|
GeneratedColumn<bool> get propertiesOpen => $composableBuilder(
|
|
column: $table.propertiesOpen,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<double> get timelineHeight => $composableBuilder(
|
|
column: $table.timelineHeight,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<double> get mediaWidth => $composableBuilder(
|
|
column: $table.mediaWidth,
|
|
builder: (column) => column,
|
|
);
|
|
}
|
|
|
|
class $$ProjectViewConfigurationsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$ProjectViewConfigurationsTable,
|
|
ProjectViewConfiguration,
|
|
$$ProjectViewConfigurationsTableFilterComposer,
|
|
$$ProjectViewConfigurationsTableOrderingComposer,
|
|
$$ProjectViewConfigurationsTableAnnotationComposer,
|
|
$$ProjectViewConfigurationsTableCreateCompanionBuilder,
|
|
$$ProjectViewConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
ProjectViewConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ProjectViewConfigurationsTable,
|
|
ProjectViewConfiguration
|
|
>,
|
|
),
|
|
ProjectViewConfiguration,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$ProjectViewConfigurationsTableTableManager(
|
|
_$AppDatabase db,
|
|
$ProjectViewConfigurationsTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$ProjectViewConfigurationsTableFilterComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createOrderingComposer: () =>
|
|
$$ProjectViewConfigurationsTableOrderingComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createComputedFieldComposer: () =>
|
|
$$ProjectViewConfigurationsTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<String> projectId = const Value.absent(),
|
|
Value<bool> propertiesOpen = const Value.absent(),
|
|
Value<double?> timelineHeight = const Value.absent(),
|
|
Value<double?> mediaWidth = const Value.absent(),
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => ProjectViewConfigurationsCompanion(
|
|
projectId: projectId,
|
|
propertiesOpen: propertiesOpen,
|
|
timelineHeight: timelineHeight,
|
|
mediaWidth: mediaWidth,
|
|
rowid: rowid,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
required String projectId,
|
|
required bool propertiesOpen,
|
|
Value<double?> timelineHeight = const Value.absent(),
|
|
Value<double?> mediaWidth = const Value.absent(),
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => ProjectViewConfigurationsCompanion.insert(
|
|
projectId: projectId,
|
|
propertiesOpen: propertiesOpen,
|
|
timelineHeight: timelineHeight,
|
|
mediaWidth: mediaWidth,
|
|
rowid: rowid,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<
|
|
$ProjectViewConfigurationsTable,
|
|
ProjectViewConfiguration
|
|
>(table),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ProjectViewConfigurationsTable,
|
|
ProjectViewConfiguration
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$ProjectViewConfigurationsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$ProjectViewConfigurationsTable,
|
|
ProjectViewConfiguration,
|
|
$$ProjectViewConfigurationsTableFilterComposer,
|
|
$$ProjectViewConfigurationsTableOrderingComposer,
|
|
$$ProjectViewConfigurationsTableAnnotationComposer,
|
|
$$ProjectViewConfigurationsTableCreateCompanionBuilder,
|
|
$$ProjectViewConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
ProjectViewConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$ProjectViewConfigurationsTable,
|
|
ProjectViewConfiguration
|
|
>,
|
|
),
|
|
ProjectViewConfiguration,
|
|
PrefetchHooks Function()
|
|
>;
|
|
typedef $$TimelineViewConfigurationsTableCreateCompanionBuilder =
|
|
TimelineViewConfigurationsCompanion Function({
|
|
required String projectId,
|
|
required String timelineId,
|
|
required String sequenceId,
|
|
required bool active,
|
|
required int playheadTick,
|
|
required int baseTick,
|
|
required double fractionalTick,
|
|
required double pixelsPerTick,
|
|
required double verticalOffset,
|
|
Value<int> rowid,
|
|
});
|
|
typedef $$TimelineViewConfigurationsTableUpdateCompanionBuilder =
|
|
TimelineViewConfigurationsCompanion Function({
|
|
Value<String> projectId,
|
|
Value<String> timelineId,
|
|
Value<String> sequenceId,
|
|
Value<bool> active,
|
|
Value<int> playheadTick,
|
|
Value<int> baseTick,
|
|
Value<double> fractionalTick,
|
|
Value<double> pixelsPerTick,
|
|
Value<double> verticalOffset,
|
|
Value<int> rowid,
|
|
});
|
|
|
|
class $$TimelineViewConfigurationsTableFilterComposer
|
|
extends Composer<_$AppDatabase, $TimelineViewConfigurationsTable> {
|
|
$$TimelineViewConfigurationsTableFilterComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnFilters<String> get projectId => $composableBuilder(
|
|
column: $table.projectId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get timelineId => $composableBuilder(
|
|
column: $table.timelineId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<String> get sequenceId => $composableBuilder(
|
|
column: $table.sequenceId,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<bool> get active => $composableBuilder(
|
|
column: $table.active,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<int> get playheadTick => $composableBuilder(
|
|
column: $table.playheadTick,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<int> get baseTick => $composableBuilder(
|
|
column: $table.baseTick,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<double> get fractionalTick => $composableBuilder(
|
|
column: $table.fractionalTick,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<double> get pixelsPerTick => $composableBuilder(
|
|
column: $table.pixelsPerTick,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
|
|
ColumnFilters<double> get verticalOffset => $composableBuilder(
|
|
column: $table.verticalOffset,
|
|
builder: (column) => ColumnFilters(column),
|
|
);
|
|
}
|
|
|
|
class $$TimelineViewConfigurationsTableOrderingComposer
|
|
extends Composer<_$AppDatabase, $TimelineViewConfigurationsTable> {
|
|
$$TimelineViewConfigurationsTableOrderingComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
ColumnOrderings<String> get projectId => $composableBuilder(
|
|
column: $table.projectId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get timelineId => $composableBuilder(
|
|
column: $table.timelineId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<String> get sequenceId => $composableBuilder(
|
|
column: $table.sequenceId,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<bool> get active => $composableBuilder(
|
|
column: $table.active,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<int> get playheadTick => $composableBuilder(
|
|
column: $table.playheadTick,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<int> get baseTick => $composableBuilder(
|
|
column: $table.baseTick,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<double> get fractionalTick => $composableBuilder(
|
|
column: $table.fractionalTick,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<double> get pixelsPerTick => $composableBuilder(
|
|
column: $table.pixelsPerTick,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
|
|
ColumnOrderings<double> get verticalOffset => $composableBuilder(
|
|
column: $table.verticalOffset,
|
|
builder: (column) => ColumnOrderings(column),
|
|
);
|
|
}
|
|
|
|
class $$TimelineViewConfigurationsTableAnnotationComposer
|
|
extends Composer<_$AppDatabase, $TimelineViewConfigurationsTable> {
|
|
$$TimelineViewConfigurationsTableAnnotationComposer({
|
|
required super.$db,
|
|
required super.$table,
|
|
super.joinBuilder,
|
|
super.$addJoinBuilderToRootComposer,
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
});
|
|
GeneratedColumn<String> get projectId =>
|
|
$composableBuilder(column: $table.projectId, builder: (column) => column);
|
|
|
|
GeneratedColumn<String> get timelineId => $composableBuilder(
|
|
column: $table.timelineId,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<String> get sequenceId => $composableBuilder(
|
|
column: $table.sequenceId,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<bool> get active =>
|
|
$composableBuilder(column: $table.active, builder: (column) => column);
|
|
|
|
GeneratedColumn<int> get playheadTick => $composableBuilder(
|
|
column: $table.playheadTick,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<int> get baseTick =>
|
|
$composableBuilder(column: $table.baseTick, builder: (column) => column);
|
|
|
|
GeneratedColumn<double> get fractionalTick => $composableBuilder(
|
|
column: $table.fractionalTick,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<double> get pixelsPerTick => $composableBuilder(
|
|
column: $table.pixelsPerTick,
|
|
builder: (column) => column,
|
|
);
|
|
|
|
GeneratedColumn<double> get verticalOffset => $composableBuilder(
|
|
column: $table.verticalOffset,
|
|
builder: (column) => column,
|
|
);
|
|
}
|
|
|
|
class $$TimelineViewConfigurationsTableTableManager
|
|
extends
|
|
RootTableManager<
|
|
_$AppDatabase,
|
|
$TimelineViewConfigurationsTable,
|
|
TimelineViewConfiguration,
|
|
$$TimelineViewConfigurationsTableFilterComposer,
|
|
$$TimelineViewConfigurationsTableOrderingComposer,
|
|
$$TimelineViewConfigurationsTableAnnotationComposer,
|
|
$$TimelineViewConfigurationsTableCreateCompanionBuilder,
|
|
$$TimelineViewConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
TimelineViewConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$TimelineViewConfigurationsTable,
|
|
TimelineViewConfiguration
|
|
>,
|
|
),
|
|
TimelineViewConfiguration,
|
|
PrefetchHooks Function()
|
|
> {
|
|
$$TimelineViewConfigurationsTableTableManager(
|
|
_$AppDatabase db,
|
|
$TimelineViewConfigurationsTable table,
|
|
) : super(
|
|
TableManagerState(
|
|
db: db,
|
|
table: table,
|
|
createFilteringComposer: () =>
|
|
$$TimelineViewConfigurationsTableFilterComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createOrderingComposer: () =>
|
|
$$TimelineViewConfigurationsTableOrderingComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
createComputedFieldComposer: () =>
|
|
$$TimelineViewConfigurationsTableAnnotationComposer(
|
|
$db: db,
|
|
$table: table,
|
|
),
|
|
updateCompanionCallback:
|
|
({
|
|
Value<String> projectId = const Value.absent(),
|
|
Value<String> timelineId = const Value.absent(),
|
|
Value<String> sequenceId = const Value.absent(),
|
|
Value<bool> active = const Value.absent(),
|
|
Value<int> playheadTick = const Value.absent(),
|
|
Value<int> baseTick = const Value.absent(),
|
|
Value<double> fractionalTick = const Value.absent(),
|
|
Value<double> pixelsPerTick = const Value.absent(),
|
|
Value<double> verticalOffset = const Value.absent(),
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => TimelineViewConfigurationsCompanion(
|
|
projectId: projectId,
|
|
timelineId: timelineId,
|
|
sequenceId: sequenceId,
|
|
active: active,
|
|
playheadTick: playheadTick,
|
|
baseTick: baseTick,
|
|
fractionalTick: fractionalTick,
|
|
pixelsPerTick: pixelsPerTick,
|
|
verticalOffset: verticalOffset,
|
|
rowid: rowid,
|
|
),
|
|
createCompanionCallback:
|
|
({
|
|
required String projectId,
|
|
required String timelineId,
|
|
required String sequenceId,
|
|
required bool active,
|
|
required int playheadTick,
|
|
required int baseTick,
|
|
required double fractionalTick,
|
|
required double pixelsPerTick,
|
|
required double verticalOffset,
|
|
Value<int> rowid = const Value.absent(),
|
|
}) => TimelineViewConfigurationsCompanion.insert(
|
|
projectId: projectId,
|
|
timelineId: timelineId,
|
|
sequenceId: sequenceId,
|
|
active: active,
|
|
playheadTick: playheadTick,
|
|
baseTick: baseTick,
|
|
fractionalTick: fractionalTick,
|
|
pixelsPerTick: pixelsPerTick,
|
|
verticalOffset: verticalOffset,
|
|
rowid: rowid,
|
|
),
|
|
withReferenceMapper: (p0) => p0
|
|
.map(
|
|
(e) => (
|
|
e.readTable<
|
|
$TimelineViewConfigurationsTable,
|
|
TimelineViewConfiguration
|
|
>(table),
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$TimelineViewConfigurationsTable,
|
|
TimelineViewConfiguration
|
|
>(db, table, e),
|
|
),
|
|
)
|
|
.toList(),
|
|
prefetchHooksCallback: null,
|
|
),
|
|
);
|
|
}
|
|
|
|
typedef $$TimelineViewConfigurationsTableProcessedTableManager =
|
|
ProcessedTableManager<
|
|
_$AppDatabase,
|
|
$TimelineViewConfigurationsTable,
|
|
TimelineViewConfiguration,
|
|
$$TimelineViewConfigurationsTableFilterComposer,
|
|
$$TimelineViewConfigurationsTableOrderingComposer,
|
|
$$TimelineViewConfigurationsTableAnnotationComposer,
|
|
$$TimelineViewConfigurationsTableCreateCompanionBuilder,
|
|
$$TimelineViewConfigurationsTableUpdateCompanionBuilder,
|
|
(
|
|
TimelineViewConfiguration,
|
|
BaseReferences<
|
|
_$AppDatabase,
|
|
$TimelineViewConfigurationsTable,
|
|
TimelineViewConfiguration
|
|
>,
|
|
),
|
|
TimelineViewConfiguration,
|
|
PrefetchHooks Function()
|
|
>;
|
|
|
|
class $AppDatabaseManager {
|
|
final _$AppDatabase _db;
|
|
$AppDatabaseManager(this._db);
|
|
$$RecentProjectRecordsTableTableManager get recentProjectRecords =>
|
|
$$RecentProjectRecordsTableTableManager(_db, _db.recentProjectRecords);
|
|
$$LastOpenedTimelinesTableTableManager get lastOpenedTimelines =>
|
|
$$LastOpenedTimelinesTableTableManager(_db, _db.lastOpenedTimelines);
|
|
$$McpConfigurationsTableTableManager get mcpConfigurations =>
|
|
$$McpConfigurationsTableTableManager(_db, _db.mcpConfigurations);
|
|
$$AppearanceConfigurationsTableTableManager get appearanceConfigurations =>
|
|
$$AppearanceConfigurationsTableTableManager(
|
|
_db,
|
|
_db.appearanceConfigurations,
|
|
);
|
|
$$LanguageConfigurationsTableTableManager get languageConfigurations =>
|
|
$$LanguageConfigurationsTableTableManager(
|
|
_db,
|
|
_db.languageConfigurations,
|
|
);
|
|
$$ConversationLocationConfigurationsTableTableManager
|
|
get conversationLocationConfigurations =>
|
|
$$ConversationLocationConfigurationsTableTableManager(
|
|
_db,
|
|
_db.conversationLocationConfigurations,
|
|
);
|
|
$$ProjectLocationConfigurationsTableTableManager
|
|
get projectLocationConfigurations =>
|
|
$$ProjectLocationConfigurationsTableTableManager(
|
|
_db,
|
|
_db.projectLocationConfigurations,
|
|
);
|
|
$$ResourceLocationConfigurationsTableTableManager
|
|
get resourceLocationConfigurations =>
|
|
$$ResourceLocationConfigurationsTableTableManager(
|
|
_db,
|
|
_db.resourceLocationConfigurations,
|
|
);
|
|
$$AgentConfigurationsTableTableManager get agentConfigurations =>
|
|
$$AgentConfigurationsTableTableManager(_db, _db.agentConfigurations);
|
|
$$AgentProvidersTableTableManager get agentProviders =>
|
|
$$AgentProvidersTableTableManager(_db, _db.agentProviders);
|
|
$$AgentModelsTableTableManager get agentModels =>
|
|
$$AgentModelsTableTableManager(_db, _db.agentModels);
|
|
$$WorkspaceViewConfigurationsTableTableManager
|
|
get workspaceViewConfigurations =>
|
|
$$WorkspaceViewConfigurationsTableTableManager(
|
|
_db,
|
|
_db.workspaceViewConfigurations,
|
|
);
|
|
$$ProjectViewConfigurationsTableTableManager get projectViewConfigurations =>
|
|
$$ProjectViewConfigurationsTableTableManager(
|
|
_db,
|
|
_db.projectViewConfigurations,
|
|
);
|
|
$$TimelineViewConfigurationsTableTableManager
|
|
get timelineViewConfigurations =>
|
|
$$TimelineViewConfigurationsTableTableManager(
|
|
_db,
|
|
_db.timelineViewConfigurations,
|
|
);
|
|
}
|
|
|
|
// **************************************************************************
|
|
// RiverpodGenerator
|
|
// **************************************************************************
|
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: type=lint, type=warning
|
|
|
|
@ProviderFor(appDatabase)
|
|
final appDatabaseProvider = AppDatabaseProvider._();
|
|
|
|
final class AppDatabaseProvider
|
|
extends $FunctionalProvider<AppDatabase, AppDatabase, AppDatabase>
|
|
with $Provider<AppDatabase> {
|
|
AppDatabaseProvider._()
|
|
: super(
|
|
from: null,
|
|
argument: null,
|
|
retry: null,
|
|
name: r'appDatabaseProvider',
|
|
isAutoDispose: false,
|
|
dependencies: null,
|
|
$allTransitiveDependencies: null,
|
|
);
|
|
|
|
@override
|
|
String debugGetCreateSourceHash() => _$appDatabaseHash();
|
|
|
|
@$internal
|
|
@override
|
|
$ProviderElement<AppDatabase> $createElement($ProviderPointer pointer) =>
|
|
$ProviderElement(pointer);
|
|
|
|
@override
|
|
AppDatabase create(Ref ref) {
|
|
return appDatabase(ref);
|
|
}
|
|
|
|
/// {@macro riverpod.override_with_value}
|
|
Override overrideWithValue(AppDatabase value) {
|
|
return $ProviderOverride(
|
|
origin: this,
|
|
providerOverride: $SyncValueProvider<AppDatabase>(value),
|
|
);
|
|
}
|
|
}
|
|
|
|
String _$appDatabaseHash() => r'6c9628c3a3f0cb7c304f7bc0b28aaf717a7f7fd6';
|