// dart format width=80 // GENERATED BY drift_dev, DO NOT MODIFY. // ignore_for_file: type=lint,unused_import // import 'package:drift/drift.dart'; class Rooms extends Table with TableInfo { @override final GeneratedDatabase attachedDatabase; final String? _alias; Rooms(this.attachedDatabase, [this._alias]); late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, $customConstraints: 'NOT NULL PRIMARY KEY AUTOINCREMENT', ); late final GeneratedColumn name = GeneratedColumn( 'name', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true, $customConstraints: 'NOT NULL', ); late final GeneratedColumn iconName = GeneratedColumn( 'icon_name', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true, $customConstraints: 'NOT NULL', ); late final GeneratedColumn sortOrder = GeneratedColumn( 'sort_order', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: false, $customConstraints: 'NOT NULL DEFAULT 0', defaultValue: const CustomExpression('0'), ); late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true, $customConstraints: 'NOT NULL', ); @override List get $columns => [ id, name, iconName, sortOrder, createdAt, ]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'rooms'; @override Set get $primaryKey => {id}; @override Never map(Map data, {String? tablePrefix}) { throw UnsupportedError('TableInfo.map in schema verification code'); } @override Rooms createAlias(String alias) { return Rooms(attachedDatabase, alias); } @override bool get dontWriteConstraints => true; } class Tasks extends Table with TableInfo { @override final GeneratedDatabase attachedDatabase; final String? _alias; Tasks(this.attachedDatabase, [this._alias]); late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, $customConstraints: 'NOT NULL PRIMARY KEY AUTOINCREMENT', ); late final GeneratedColumn roomId = GeneratedColumn( 'room_id', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true, $customConstraints: 'NOT NULL REFERENCES rooms(id)', ); late final GeneratedColumn name = GeneratedColumn( 'name', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true, $customConstraints: 'NOT NULL', ); late final GeneratedColumn description = GeneratedColumn( 'description', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false, $customConstraints: 'NULL', ); late final GeneratedColumn intervalType = GeneratedColumn( 'interval_type', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true, $customConstraints: 'NOT NULL', ); late final GeneratedColumn intervalDays = GeneratedColumn( 'interval_days', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: false, $customConstraints: 'NOT NULL DEFAULT 1', defaultValue: const CustomExpression('1'), ); late final GeneratedColumn anchorDay = GeneratedColumn( 'anchor_day', aliasedName, true, type: DriftSqlType.int, requiredDuringInsert: false, $customConstraints: 'NULL', ); late final GeneratedColumn effortLevel = GeneratedColumn( 'effort_level', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true, $customConstraints: 'NOT NULL', ); late final GeneratedColumn nextDueDate = GeneratedColumn( 'next_due_date', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true, $customConstraints: 'NOT NULL', ); late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true, $customConstraints: 'NOT NULL', ); late final GeneratedColumn isActive = GeneratedColumn( 'is_active', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: false, $customConstraints: 'NOT NULL DEFAULT 1 CHECK (is_active IN (0, 1))', defaultValue: const CustomExpression('1'), ); @override List get $columns => [ id, roomId, name, description, intervalType, intervalDays, anchorDay, effortLevel, nextDueDate, createdAt, isActive, ]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'tasks'; @override Set get $primaryKey => {id}; @override Never map(Map data, {String? tablePrefix}) { throw UnsupportedError('TableInfo.map in schema verification code'); } @override Tasks createAlias(String alias) { return Tasks(attachedDatabase, alias); } @override bool get dontWriteConstraints => true; } class TaskCompletions extends Table with TableInfo { @override final GeneratedDatabase attachedDatabase; final String? _alias; TaskCompletions(this.attachedDatabase, [this._alias]); late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, $customConstraints: 'NOT NULL PRIMARY KEY AUTOINCREMENT', ); late final GeneratedColumn taskId = GeneratedColumn( 'task_id', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true, $customConstraints: 'NOT NULL REFERENCES tasks(id)', ); late final GeneratedColumn completedAt = GeneratedColumn( 'completed_at', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true, $customConstraints: 'NOT NULL', ); @override List get $columns => [id, taskId, completedAt]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'task_completions'; @override Set get $primaryKey => {id}; @override Never map(Map data, {String? tablePrefix}) { throw UnsupportedError('TableInfo.map in schema verification code'); } @override TaskCompletions createAlias(String alias) { return TaskCompletions(attachedDatabase, alias); } @override bool get dontWriteConstraints => true; } class DatabaseAtV3 extends GeneratedDatabase { DatabaseAtV3(QueryExecutor e) : super(e); late final Rooms rooms = Rooms(this); late final Tasks tasks = Tasks(this); late final TaskCompletions taskCompletions = TaskCompletions(this); @override Iterable> get allTables => allSchemaEntities.whereType>(); @override List get allSchemaEntities => [ rooms, tasks, taskCompletions, ]; @override int get schemaVersion => 3; }