Feat: Fügt Spalten updatedAt zu allen Tabellen hinzu
This commit is contained in:
@@ -12,6 +12,9 @@ class Accounts extends Table {
|
|||||||
|
|
||||||
/// Name des Kontos
|
/// Name des Kontos
|
||||||
TextColumn get name => text().withDefault(const Constant(''))();
|
TextColumn get name => text().withDefault(const Constant(''))();
|
||||||
|
|
||||||
|
/// Wann das Konto das letzte mal geupdated wurde.
|
||||||
|
DateTimeColumn get updatedAt => dateTime().withDefault(currentDateAndTime)();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Eine Tabelle für einzelne Transaktionen.
|
/// Eine Tabelle für einzelne Transaktionen.
|
||||||
@@ -38,6 +41,9 @@ class Transactions extends Table {
|
|||||||
/// falls vorhanden
|
/// falls vorhanden
|
||||||
IntColumn get recurringTransactionId =>
|
IntColumn get recurringTransactionId =>
|
||||||
integer().nullable().references(RecurringTransactions, #id)();
|
integer().nullable().references(RecurringTransactions, #id)();
|
||||||
|
|
||||||
|
/// Wann die Transaktion das letzte mal geupdated wurde.
|
||||||
|
DateTimeColumn get updatedAt => dateTime().withDefault(currentDateAndTime)();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Eine Tabelle für wiederkehrende Transaktionen.
|
/// Eine Tabelle für wiederkehrende Transaktionen.
|
||||||
@@ -59,6 +65,9 @@ class RecurringTransactions extends Table {
|
|||||||
|
|
||||||
/// Fremdschlüssel zum zugehörigen Konto
|
/// Fremdschlüssel zum zugehörigen Konto
|
||||||
IntColumn get accountId => integer().references(Accounts, #id)();
|
IntColumn get accountId => integer().references(Accounts, #id)();
|
||||||
|
|
||||||
|
/// Wann die wiederkehrende Transaktion das letzte mal geupdated wurde.
|
||||||
|
DateTimeColumn get updatedAt => dateTime().withDefault(currentDateAndTime)();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Hauptklasse für die Drift-Datenbank der Anwendung.
|
/// Hauptklasse für die Drift-Datenbank der Anwendung.
|
||||||
|
|||||||
@@ -31,8 +31,21 @@ class $AccountsTable extends Accounts with TableInfo<$AccountsTable, Account> {
|
|||||||
requiredDuringInsert: false,
|
requiredDuringInsert: false,
|
||||||
defaultValue: const Constant(''),
|
defaultValue: const Constant(''),
|
||||||
);
|
);
|
||||||
|
static const VerificationMeta _updatedAtMeta = const VerificationMeta(
|
||||||
|
'updatedAt',
|
||||||
|
);
|
||||||
@override
|
@override
|
||||||
List<GeneratedColumn> get $columns => [id, name];
|
late final GeneratedColumn<DateTime> updatedAt = GeneratedColumn<DateTime>(
|
||||||
|
'updated_at',
|
||||||
|
aliasedName,
|
||||||
|
false,
|
||||||
|
type: DriftSqlType.dateTime,
|
||||||
|
requiredDuringInsert: false,
|
||||||
|
defaultValue: currentDateAndTime,
|
||||||
|
);
|
||||||
|
|
||||||
|
@override
|
||||||
|
List<GeneratedColumn> get $columns => [id, name, updatedAt];
|
||||||
@override
|
@override
|
||||||
String get aliasedName => _alias ?? actualTableName;
|
String get aliasedName => _alias ?? actualTableName;
|
||||||
@override
|
@override
|
||||||
@@ -54,6 +67,12 @@ class $AccountsTable extends Accounts with TableInfo<$AccountsTable, Account> {
|
|||||||
name.isAcceptableOrUnknown(data['name']!, _nameMeta),
|
name.isAcceptableOrUnknown(data['name']!, _nameMeta),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (data.containsKey('updated_at')) {
|
||||||
|
context.handle(
|
||||||
|
_updatedAtMeta,
|
||||||
|
updatedAt.isAcceptableOrUnknown(data['updated_at']!, _updatedAtMeta),
|
||||||
|
);
|
||||||
|
}
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,6 +90,10 @@ class $AccountsTable extends Accounts with TableInfo<$AccountsTable, Account> {
|
|||||||
DriftSqlType.string,
|
DriftSqlType.string,
|
||||||
data['${effectivePrefix}name'],
|
data['${effectivePrefix}name'],
|
||||||
)!,
|
)!,
|
||||||
|
updatedAt: attachedDatabase.typeMapping.read(
|
||||||
|
DriftSqlType.dateTime,
|
||||||
|
data['${effectivePrefix}updated_at'],
|
||||||
|
)!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,17 +109,30 @@ class Account extends DataClass implements Insertable<Account> {
|
|||||||
|
|
||||||
/// Name des Kontos
|
/// Name des Kontos
|
||||||
final String name;
|
final String name;
|
||||||
const Account({required this.id, required this.name});
|
|
||||||
|
/// Wann das Konto das letzte mal geupdated wurde.
|
||||||
|
final DateTime updatedAt;
|
||||||
|
|
||||||
|
const Account({
|
||||||
|
required this.id,
|
||||||
|
required this.name,
|
||||||
|
required this.updatedAt,
|
||||||
|
});
|
||||||
@override
|
@override
|
||||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||||
final map = <String, Expression>{};
|
final map = <String, Expression>{};
|
||||||
map['id'] = Variable<int>(id);
|
map['id'] = Variable<int>(id);
|
||||||
map['name'] = Variable<String>(name);
|
map['name'] = Variable<String>(name);
|
||||||
|
map['updated_at'] = Variable<DateTime>(updatedAt);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
AccountsCompanion toCompanion(bool nullToAbsent) {
|
AccountsCompanion toCompanion(bool nullToAbsent) {
|
||||||
return AccountsCompanion(id: Value(id), name: Value(name));
|
return AccountsCompanion(
|
||||||
|
id: Value(id),
|
||||||
|
name: Value(name),
|
||||||
|
updatedAt: Value(updatedAt),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
factory Account.fromJson(
|
factory Account.fromJson(
|
||||||
@@ -107,6 +143,7 @@ class Account extends DataClass implements Insertable<Account> {
|
|||||||
return Account(
|
return Account(
|
||||||
id: serializer.fromJson<int>(json['id']),
|
id: serializer.fromJson<int>(json['id']),
|
||||||
name: serializer.fromJson<String>(json['name']),
|
name: serializer.fromJson<String>(json['name']),
|
||||||
|
updatedAt: serializer.fromJson<DateTime>(json['updatedAt']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@override
|
@override
|
||||||
@@ -115,58 +152,79 @@ class Account extends DataClass implements Insertable<Account> {
|
|||||||
return <String, dynamic>{
|
return <String, dynamic>{
|
||||||
'id': serializer.toJson<int>(id),
|
'id': serializer.toJson<int>(id),
|
||||||
'name': serializer.toJson<String>(name),
|
'name': serializer.toJson<String>(name),
|
||||||
|
'updatedAt': serializer.toJson<DateTime>(updatedAt),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
Account copyWith({int? id, String? name}) =>
|
Account copyWith({int? id, String? name, DateTime? updatedAt}) => Account(
|
||||||
Account(id: id ?? this.id, name: name ?? this.name);
|
id: id ?? this.id,
|
||||||
|
name: name ?? this.name,
|
||||||
|
updatedAt: updatedAt ?? this.updatedAt,
|
||||||
|
);
|
||||||
Account copyWithCompanion(AccountsCompanion data) {
|
Account copyWithCompanion(AccountsCompanion data) {
|
||||||
return Account(
|
return Account(
|
||||||
id: data.id.present ? data.id.value : this.id,
|
id: data.id.present ? data.id.value : this.id,
|
||||||
name: data.name.present ? data.name.value : this.name,
|
name: data.name.present ? data.name.value : this.name,
|
||||||
|
updatedAt: data.updatedAt.present ? data.updatedAt.value : this.updatedAt,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
return (StringBuffer('Account(')
|
return (StringBuffer('Account(')
|
||||||
..write('id: $id, ')
|
..write('id: $id, ')..write('name: $name, ')..write(
|
||||||
..write('name: $name')
|
'updatedAt: $updatedAt')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode => Object.hash(id, name);
|
int get hashCode => Object.hash(id, name, updatedAt);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) =>
|
bool operator ==(Object other) =>
|
||||||
identical(this, other) ||
|
identical(this, other) ||
|
||||||
(other is Account && other.id == this.id && other.name == this.name);
|
(other is Account &&
|
||||||
|
other.id == this.id &&
|
||||||
|
other.name == this.name &&
|
||||||
|
other.updatedAt == this.updatedAt);
|
||||||
}
|
}
|
||||||
|
|
||||||
class AccountsCompanion extends UpdateCompanion<Account> {
|
class AccountsCompanion extends UpdateCompanion<Account> {
|
||||||
final Value<int> id;
|
final Value<int> id;
|
||||||
final Value<String> name;
|
final Value<String> name;
|
||||||
|
final Value<DateTime> updatedAt;
|
||||||
const AccountsCompanion({
|
const AccountsCompanion({
|
||||||
this.id = const Value.absent(),
|
this.id = const Value.absent(),
|
||||||
this.name = const Value.absent(),
|
this.name = const Value.absent(),
|
||||||
|
this.updatedAt = const Value.absent(),
|
||||||
});
|
});
|
||||||
AccountsCompanion.insert({
|
AccountsCompanion.insert({
|
||||||
this.id = const Value.absent(),
|
this.id = const Value.absent(),
|
||||||
this.name = const Value.absent(),
|
this.name = const Value.absent(),
|
||||||
|
this.updatedAt = const Value.absent(),
|
||||||
});
|
});
|
||||||
static Insertable<Account> custom({
|
static Insertable<Account> custom({
|
||||||
Expression<int>? id,
|
Expression<int>? id,
|
||||||
Expression<String>? name,
|
Expression<String>? name,
|
||||||
|
Expression<DateTime>? updatedAt,
|
||||||
}) {
|
}) {
|
||||||
return RawValuesInsertable({
|
return RawValuesInsertable({
|
||||||
if (id != null) 'id': id,
|
if (id != null) 'id': id,
|
||||||
if (name != null) 'name': name,
|
if (name != null) 'name': name,
|
||||||
|
if (updatedAt != null) 'updated_at': updatedAt,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
AccountsCompanion copyWith({Value<int>? id, Value<String>? name}) {
|
AccountsCompanion copyWith({
|
||||||
return AccountsCompanion(id: id ?? this.id, name: name ?? this.name);
|
Value<int>? id,
|
||||||
|
Value<String>? name,
|
||||||
|
Value<DateTime>? updatedAt,
|
||||||
|
}) {
|
||||||
|
return AccountsCompanion(
|
||||||
|
id: id ?? this.id,
|
||||||
|
name: name ?? this.name,
|
||||||
|
updatedAt: updatedAt ?? this.updatedAt,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -178,14 +236,17 @@ class AccountsCompanion extends UpdateCompanion<Account> {
|
|||||||
if (name.present) {
|
if (name.present) {
|
||||||
map['name'] = Variable<String>(name.value);
|
map['name'] = Variable<String>(name.value);
|
||||||
}
|
}
|
||||||
|
if (updatedAt.present) {
|
||||||
|
map['updated_at'] = Variable<DateTime>(updatedAt.value);
|
||||||
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
return (StringBuffer('AccountsCompanion(')
|
return (StringBuffer('AccountsCompanion(')
|
||||||
..write('id: $id, ')
|
..write('id: $id, ')..write('name: $name, ')..write(
|
||||||
..write('name: $name')
|
'updatedAt: $updatedAt')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
@@ -266,6 +327,18 @@ class $RecurringTransactionsTable extends RecurringTransactions
|
|||||||
'REFERENCES accounts (id)',
|
'REFERENCES accounts (id)',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
static const VerificationMeta _updatedAtMeta = const VerificationMeta(
|
||||||
|
'updatedAt',
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
late final GeneratedColumn<DateTime> updatedAt = GeneratedColumn<DateTime>(
|
||||||
|
'updated_at',
|
||||||
|
aliasedName,
|
||||||
|
false,
|
||||||
|
type: DriftSqlType.dateTime,
|
||||||
|
requiredDuringInsert: false,
|
||||||
|
defaultValue: currentDateAndTime,
|
||||||
|
);
|
||||||
@override
|
@override
|
||||||
List<GeneratedColumn> get $columns => [
|
List<GeneratedColumn> get $columns => [
|
||||||
id,
|
id,
|
||||||
@@ -274,6 +347,7 @@ class $RecurringTransactionsTable extends RecurringTransactions
|
|||||||
timeFrame,
|
timeFrame,
|
||||||
amount,
|
amount,
|
||||||
accountId,
|
accountId,
|
||||||
|
updatedAt,
|
||||||
];
|
];
|
||||||
@override
|
@override
|
||||||
String get aliasedName => _alias ?? actualTableName;
|
String get aliasedName => _alias ?? actualTableName;
|
||||||
@@ -316,6 +390,12 @@ class $RecurringTransactionsTable extends RecurringTransactions
|
|||||||
} else if (isInserting) {
|
} else if (isInserting) {
|
||||||
context.missing(_accountIdMeta);
|
context.missing(_accountIdMeta);
|
||||||
}
|
}
|
||||||
|
if (data.containsKey('updated_at')) {
|
||||||
|
context.handle(
|
||||||
|
_updatedAtMeta,
|
||||||
|
updatedAt.isAcceptableOrUnknown(data['updated_at']!, _updatedAtMeta),
|
||||||
|
);
|
||||||
|
}
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -351,6 +431,10 @@ class $RecurringTransactionsTable extends RecurringTransactions
|
|||||||
DriftSqlType.int,
|
DriftSqlType.int,
|
||||||
data['${effectivePrefix}account_id'],
|
data['${effectivePrefix}account_id'],
|
||||||
)!,
|
)!,
|
||||||
|
updatedAt: attachedDatabase.typeMapping.read(
|
||||||
|
DriftSqlType.dateTime,
|
||||||
|
data['${effectivePrefix}updated_at'],
|
||||||
|
)!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -382,6 +466,9 @@ class RecurringTransaction extends DataClass
|
|||||||
|
|
||||||
/// Fremdschlüssel zum zugehörigen Konto
|
/// Fremdschlüssel zum zugehörigen Konto
|
||||||
final int accountId;
|
final int accountId;
|
||||||
|
|
||||||
|
/// Wann die wiederkehrende Transaktion das letzte mal geupdated wurde.
|
||||||
|
final DateTime updatedAt;
|
||||||
const RecurringTransaction({
|
const RecurringTransaction({
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.name,
|
required this.name,
|
||||||
@@ -389,6 +476,7 @@ class RecurringTransaction extends DataClass
|
|||||||
required this.timeFrame,
|
required this.timeFrame,
|
||||||
required this.amount,
|
required this.amount,
|
||||||
required this.accountId,
|
required this.accountId,
|
||||||
|
required this.updatedAt,
|
||||||
});
|
});
|
||||||
@override
|
@override
|
||||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||||
@@ -405,6 +493,7 @@ class RecurringTransaction extends DataClass
|
|||||||
}
|
}
|
||||||
map['amount'] = Variable<double>(amount);
|
map['amount'] = Variable<double>(amount);
|
||||||
map['account_id'] = Variable<int>(accountId);
|
map['account_id'] = Variable<int>(accountId);
|
||||||
|
map['updated_at'] = Variable<DateTime>(updatedAt);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -418,6 +507,7 @@ class RecurringTransaction extends DataClass
|
|||||||
timeFrame: Value(timeFrame),
|
timeFrame: Value(timeFrame),
|
||||||
amount: Value(amount),
|
amount: Value(amount),
|
||||||
accountId: Value(accountId),
|
accountId: Value(accountId),
|
||||||
|
updatedAt: Value(updatedAt),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -435,6 +525,7 @@ class RecurringTransaction extends DataClass
|
|||||||
),
|
),
|
||||||
amount: serializer.fromJson<double>(json['amount']),
|
amount: serializer.fromJson<double>(json['amount']),
|
||||||
accountId: serializer.fromJson<int>(json['accountId']),
|
accountId: serializer.fromJson<int>(json['accountId']),
|
||||||
|
updatedAt: serializer.fromJson<DateTime>(json['updatedAt']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@override
|
@override
|
||||||
@@ -449,6 +540,7 @@ class RecurringTransaction extends DataClass
|
|||||||
),
|
),
|
||||||
'amount': serializer.toJson<double>(amount),
|
'amount': serializer.toJson<double>(amount),
|
||||||
'accountId': serializer.toJson<int>(accountId),
|
'accountId': serializer.toJson<int>(accountId),
|
||||||
|
'updatedAt': serializer.toJson<DateTime>(updatedAt),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -459,6 +551,7 @@ class RecurringTransaction extends DataClass
|
|||||||
TimeFrameEnum? timeFrame,
|
TimeFrameEnum? timeFrame,
|
||||||
double? amount,
|
double? amount,
|
||||||
int? accountId,
|
int? accountId,
|
||||||
|
DateTime? updatedAt,
|
||||||
}) => RecurringTransaction(
|
}) => RecurringTransaction(
|
||||||
id: id ?? this.id,
|
id: id ?? this.id,
|
||||||
name: name ?? this.name,
|
name: name ?? this.name,
|
||||||
@@ -466,6 +559,7 @@ class RecurringTransaction extends DataClass
|
|||||||
timeFrame: timeFrame ?? this.timeFrame,
|
timeFrame: timeFrame ?? this.timeFrame,
|
||||||
amount: amount ?? this.amount,
|
amount: amount ?? this.amount,
|
||||||
accountId: accountId ?? this.accountId,
|
accountId: accountId ?? this.accountId,
|
||||||
|
updatedAt: updatedAt ?? this.updatedAt,
|
||||||
);
|
);
|
||||||
RecurringTransaction copyWithCompanion(RecurringTransactionsCompanion data) {
|
RecurringTransaction copyWithCompanion(RecurringTransactionsCompanion data) {
|
||||||
return RecurringTransaction(
|
return RecurringTransaction(
|
||||||
@@ -475,6 +569,7 @@ class RecurringTransaction extends DataClass
|
|||||||
timeFrame: data.timeFrame.present ? data.timeFrame.value : this.timeFrame,
|
timeFrame: data.timeFrame.present ? data.timeFrame.value : this.timeFrame,
|
||||||
amount: data.amount.present ? data.amount.value : this.amount,
|
amount: data.amount.present ? data.amount.value : this.amount,
|
||||||
accountId: data.accountId.present ? data.accountId.value : this.accountId,
|
accountId: data.accountId.present ? data.accountId.value : this.accountId,
|
||||||
|
updatedAt: data.updatedAt.present ? data.updatedAt.value : this.updatedAt,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -485,15 +580,15 @@ class RecurringTransaction extends DataClass
|
|||||||
..write('name: $name, ')
|
..write('name: $name, ')
|
||||||
..write('startDate: $startDate, ')
|
..write('startDate: $startDate, ')
|
||||||
..write('timeFrame: $timeFrame, ')
|
..write('timeFrame: $timeFrame, ')
|
||||||
..write('amount: $amount, ')
|
..write('amount: $amount, ')..write('accountId: $accountId, ')..write(
|
||||||
..write('accountId: $accountId')
|
'updatedAt: $updatedAt')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
Object.hash(id, name, startDate, timeFrame, amount, accountId);
|
Object.hash(id, name, startDate, timeFrame, amount, accountId, updatedAt);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) =>
|
bool operator ==(Object other) =>
|
||||||
identical(this, other) ||
|
identical(this, other) ||
|
||||||
@@ -503,7 +598,8 @@ class RecurringTransaction extends DataClass
|
|||||||
other.startDate == this.startDate &&
|
other.startDate == this.startDate &&
|
||||||
other.timeFrame == this.timeFrame &&
|
other.timeFrame == this.timeFrame &&
|
||||||
other.amount == this.amount &&
|
other.amount == this.amount &&
|
||||||
other.accountId == this.accountId);
|
other.accountId == this.accountId &&
|
||||||
|
other.updatedAt == this.updatedAt);
|
||||||
}
|
}
|
||||||
|
|
||||||
class RecurringTransactionsCompanion
|
class RecurringTransactionsCompanion
|
||||||
@@ -514,6 +610,7 @@ class RecurringTransactionsCompanion
|
|||||||
final Value<TimeFrameEnum> timeFrame;
|
final Value<TimeFrameEnum> timeFrame;
|
||||||
final Value<double> amount;
|
final Value<double> amount;
|
||||||
final Value<int> accountId;
|
final Value<int> accountId;
|
||||||
|
final Value<DateTime> updatedAt;
|
||||||
const RecurringTransactionsCompanion({
|
const RecurringTransactionsCompanion({
|
||||||
this.id = const Value.absent(),
|
this.id = const Value.absent(),
|
||||||
this.name = const Value.absent(),
|
this.name = const Value.absent(),
|
||||||
@@ -521,6 +618,7 @@ class RecurringTransactionsCompanion
|
|||||||
this.timeFrame = const Value.absent(),
|
this.timeFrame = const Value.absent(),
|
||||||
this.amount = const Value.absent(),
|
this.amount = const Value.absent(),
|
||||||
this.accountId = const Value.absent(),
|
this.accountId = const Value.absent(),
|
||||||
|
this.updatedAt = const Value.absent(),
|
||||||
});
|
});
|
||||||
RecurringTransactionsCompanion.insert({
|
RecurringTransactionsCompanion.insert({
|
||||||
this.id = const Value.absent(),
|
this.id = const Value.absent(),
|
||||||
@@ -529,6 +627,7 @@ class RecurringTransactionsCompanion
|
|||||||
required TimeFrameEnum timeFrame,
|
required TimeFrameEnum timeFrame,
|
||||||
this.amount = const Value.absent(),
|
this.amount = const Value.absent(),
|
||||||
required int accountId,
|
required int accountId,
|
||||||
|
this.updatedAt = const Value.absent(),
|
||||||
}) : timeFrame = Value(timeFrame),
|
}) : timeFrame = Value(timeFrame),
|
||||||
accountId = Value(accountId);
|
accountId = Value(accountId);
|
||||||
static Insertable<RecurringTransaction> custom({
|
static Insertable<RecurringTransaction> custom({
|
||||||
@@ -538,6 +637,7 @@ class RecurringTransactionsCompanion
|
|||||||
Expression<int>? timeFrame,
|
Expression<int>? timeFrame,
|
||||||
Expression<double>? amount,
|
Expression<double>? amount,
|
||||||
Expression<int>? accountId,
|
Expression<int>? accountId,
|
||||||
|
Expression<DateTime>? updatedAt,
|
||||||
}) {
|
}) {
|
||||||
return RawValuesInsertable({
|
return RawValuesInsertable({
|
||||||
if (id != null) 'id': id,
|
if (id != null) 'id': id,
|
||||||
@@ -546,6 +646,7 @@ class RecurringTransactionsCompanion
|
|||||||
if (timeFrame != null) 'time_frame': timeFrame,
|
if (timeFrame != null) 'time_frame': timeFrame,
|
||||||
if (amount != null) 'amount': amount,
|
if (amount != null) 'amount': amount,
|
||||||
if (accountId != null) 'account_id': accountId,
|
if (accountId != null) 'account_id': accountId,
|
||||||
|
if (updatedAt != null) 'updated_at': updatedAt,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -556,6 +657,7 @@ class RecurringTransactionsCompanion
|
|||||||
Value<TimeFrameEnum>? timeFrame,
|
Value<TimeFrameEnum>? timeFrame,
|
||||||
Value<double>? amount,
|
Value<double>? amount,
|
||||||
Value<int>? accountId,
|
Value<int>? accountId,
|
||||||
|
Value<DateTime>? updatedAt,
|
||||||
}) {
|
}) {
|
||||||
return RecurringTransactionsCompanion(
|
return RecurringTransactionsCompanion(
|
||||||
id: id ?? this.id,
|
id: id ?? this.id,
|
||||||
@@ -564,6 +666,7 @@ class RecurringTransactionsCompanion
|
|||||||
timeFrame: timeFrame ?? this.timeFrame,
|
timeFrame: timeFrame ?? this.timeFrame,
|
||||||
amount: amount ?? this.amount,
|
amount: amount ?? this.amount,
|
||||||
accountId: accountId ?? this.accountId,
|
accountId: accountId ?? this.accountId,
|
||||||
|
updatedAt: updatedAt ?? this.updatedAt,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -590,6 +693,9 @@ class RecurringTransactionsCompanion
|
|||||||
if (accountId.present) {
|
if (accountId.present) {
|
||||||
map['account_id'] = Variable<int>(accountId.value);
|
map['account_id'] = Variable<int>(accountId.value);
|
||||||
}
|
}
|
||||||
|
if (updatedAt.present) {
|
||||||
|
map['updated_at'] = Variable<DateTime>(updatedAt.value);
|
||||||
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -600,8 +706,8 @@ class RecurringTransactionsCompanion
|
|||||||
..write('name: $name, ')
|
..write('name: $name, ')
|
||||||
..write('startDate: $startDate, ')
|
..write('startDate: $startDate, ')
|
||||||
..write('timeFrame: $timeFrame, ')
|
..write('timeFrame: $timeFrame, ')
|
||||||
..write('amount: $amount, ')
|
..write('amount: $amount, ')..write('accountId: $accountId, ')..write(
|
||||||
..write('accountId: $accountId')
|
'updatedAt: $updatedAt')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
@@ -697,6 +803,18 @@ class $TransactionsTable extends Transactions
|
|||||||
'REFERENCES recurring_transactions (id)',
|
'REFERENCES recurring_transactions (id)',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
static const VerificationMeta _updatedAtMeta = const VerificationMeta(
|
||||||
|
'updatedAt',
|
||||||
|
);
|
||||||
|
@override
|
||||||
|
late final GeneratedColumn<DateTime> updatedAt = GeneratedColumn<DateTime>(
|
||||||
|
'updated_at',
|
||||||
|
aliasedName,
|
||||||
|
false,
|
||||||
|
type: DriftSqlType.dateTime,
|
||||||
|
requiredDuringInsert: false,
|
||||||
|
defaultValue: currentDateAndTime,
|
||||||
|
);
|
||||||
@override
|
@override
|
||||||
List<GeneratedColumn> get $columns => [
|
List<GeneratedColumn> get $columns => [
|
||||||
id,
|
id,
|
||||||
@@ -706,6 +824,7 @@ class $TransactionsTable extends Transactions
|
|||||||
checked,
|
checked,
|
||||||
accountId,
|
accountId,
|
||||||
recurringTransactionId,
|
recurringTransactionId,
|
||||||
|
updatedAt,
|
||||||
];
|
];
|
||||||
@override
|
@override
|
||||||
String get aliasedName => _alias ?? actualTableName;
|
String get aliasedName => _alias ?? actualTableName;
|
||||||
@@ -763,6 +882,12 @@ class $TransactionsTable extends Transactions
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (data.containsKey('updated_at')) {
|
||||||
|
context.handle(
|
||||||
|
_updatedAtMeta,
|
||||||
|
updatedAt.isAcceptableOrUnknown(data['updated_at']!, _updatedAtMeta),
|
||||||
|
);
|
||||||
|
}
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -800,6 +925,10 @@ class $TransactionsTable extends Transactions
|
|||||||
DriftSqlType.int,
|
DriftSqlType.int,
|
||||||
data['${effectivePrefix}recurring_transaction_id'],
|
data['${effectivePrefix}recurring_transaction_id'],
|
||||||
),
|
),
|
||||||
|
updatedAt: attachedDatabase.typeMapping.read(
|
||||||
|
DriftSqlType.dateTime,
|
||||||
|
data['${effectivePrefix}updated_at'],
|
||||||
|
)!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -831,6 +960,9 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
/// Fremdschlüssel zur zugehörigen wiederkehrenden Transaktion,
|
/// Fremdschlüssel zur zugehörigen wiederkehrenden Transaktion,
|
||||||
/// falls vorhanden
|
/// falls vorhanden
|
||||||
final int? recurringTransactionId;
|
final int? recurringTransactionId;
|
||||||
|
|
||||||
|
/// Wann die Transaktion das letzte mal geupdated wurde.
|
||||||
|
final DateTime updatedAt;
|
||||||
const Transaction({
|
const Transaction({
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.name,
|
required this.name,
|
||||||
@@ -839,6 +971,7 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
required this.checked,
|
required this.checked,
|
||||||
required this.accountId,
|
required this.accountId,
|
||||||
this.recurringTransactionId,
|
this.recurringTransactionId,
|
||||||
|
required this.updatedAt,
|
||||||
});
|
});
|
||||||
@override
|
@override
|
||||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||||
@@ -854,6 +987,7 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
if (!nullToAbsent || recurringTransactionId != null) {
|
if (!nullToAbsent || recurringTransactionId != null) {
|
||||||
map['recurring_transaction_id'] = Variable<int>(recurringTransactionId);
|
map['recurring_transaction_id'] = Variable<int>(recurringTransactionId);
|
||||||
}
|
}
|
||||||
|
map['updated_at'] = Variable<DateTime>(updatedAt);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -868,6 +1002,7 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
recurringTransactionId: recurringTransactionId == null && nullToAbsent
|
recurringTransactionId: recurringTransactionId == null && nullToAbsent
|
||||||
? const Value.absent()
|
? const Value.absent()
|
||||||
: Value(recurringTransactionId),
|
: Value(recurringTransactionId),
|
||||||
|
updatedAt: Value(updatedAt),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -886,6 +1021,7 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
recurringTransactionId: serializer.fromJson<int?>(
|
recurringTransactionId: serializer.fromJson<int?>(
|
||||||
json['recurringTransactionId'],
|
json['recurringTransactionId'],
|
||||||
),
|
),
|
||||||
|
updatedAt: serializer.fromJson<DateTime>(json['updatedAt']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@override
|
@override
|
||||||
@@ -899,6 +1035,7 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
'checked': serializer.toJson<bool>(checked),
|
'checked': serializer.toJson<bool>(checked),
|
||||||
'accountId': serializer.toJson<int>(accountId),
|
'accountId': serializer.toJson<int>(accountId),
|
||||||
'recurringTransactionId': serializer.toJson<int?>(recurringTransactionId),
|
'recurringTransactionId': serializer.toJson<int?>(recurringTransactionId),
|
||||||
|
'updatedAt': serializer.toJson<DateTime>(updatedAt),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -910,6 +1047,7 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
bool? checked,
|
bool? checked,
|
||||||
int? accountId,
|
int? accountId,
|
||||||
Value<int?> recurringTransactionId = const Value.absent(),
|
Value<int?> recurringTransactionId = const Value.absent(),
|
||||||
|
DateTime? updatedAt,
|
||||||
}) => Transaction(
|
}) => Transaction(
|
||||||
id: id ?? this.id,
|
id: id ?? this.id,
|
||||||
name: name ?? this.name,
|
name: name ?? this.name,
|
||||||
@@ -920,6 +1058,7 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
recurringTransactionId: recurringTransactionId.present
|
recurringTransactionId: recurringTransactionId.present
|
||||||
? recurringTransactionId.value
|
? recurringTransactionId.value
|
||||||
: this.recurringTransactionId,
|
: this.recurringTransactionId,
|
||||||
|
updatedAt: updatedAt ?? this.updatedAt,
|
||||||
);
|
);
|
||||||
Transaction copyWithCompanion(TransactionsCompanion data) {
|
Transaction copyWithCompanion(TransactionsCompanion data) {
|
||||||
return Transaction(
|
return Transaction(
|
||||||
@@ -932,6 +1071,7 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
recurringTransactionId: data.recurringTransactionId.present
|
recurringTransactionId: data.recurringTransactionId.present
|
||||||
? data.recurringTransactionId.value
|
? data.recurringTransactionId.value
|
||||||
: this.recurringTransactionId,
|
: this.recurringTransactionId,
|
||||||
|
updatedAt: data.updatedAt.present ? data.updatedAt.value : this.updatedAt,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -940,10 +1080,11 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
return (StringBuffer('Transaction(')
|
return (StringBuffer('Transaction(')
|
||||||
..write('id: $id, ')
|
..write('id: $id, ')
|
||||||
..write('name: $name, ')
|
..write('name: $name, ')
|
||||||
..write('date: $date, ')
|
..write('date: $date, ')..write('amount: $amount, ')..write(
|
||||||
..write('amount: $amount, ')..write('checked: $checked, ')
|
'checked: $checked, ')
|
||||||
..write('accountId: $accountId, ')
|
..write('accountId: $accountId, ')..write(
|
||||||
..write('recurringTransactionId: $recurringTransactionId')
|
'recurringTransactionId: $recurringTransactionId, ')..write(
|
||||||
|
'updatedAt: $updatedAt')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
@@ -957,6 +1098,7 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
checked,
|
checked,
|
||||||
accountId,
|
accountId,
|
||||||
recurringTransactionId,
|
recurringTransactionId,
|
||||||
|
updatedAt,
|
||||||
);
|
);
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) =>
|
bool operator ==(Object other) =>
|
||||||
@@ -968,7 +1110,8 @@ class Transaction extends DataClass implements Insertable<Transaction> {
|
|||||||
other.amount == this.amount &&
|
other.amount == this.amount &&
|
||||||
other.checked == this.checked &&
|
other.checked == this.checked &&
|
||||||
other.accountId == this.accountId &&
|
other.accountId == this.accountId &&
|
||||||
other.recurringTransactionId == this.recurringTransactionId);
|
other.recurringTransactionId == this.recurringTransactionId &&
|
||||||
|
other.updatedAt == this.updatedAt);
|
||||||
}
|
}
|
||||||
|
|
||||||
class TransactionsCompanion extends UpdateCompanion<Transaction> {
|
class TransactionsCompanion extends UpdateCompanion<Transaction> {
|
||||||
@@ -979,6 +1122,7 @@ class TransactionsCompanion extends UpdateCompanion<Transaction> {
|
|||||||
final Value<bool> checked;
|
final Value<bool> checked;
|
||||||
final Value<int> accountId;
|
final Value<int> accountId;
|
||||||
final Value<int?> recurringTransactionId;
|
final Value<int?> recurringTransactionId;
|
||||||
|
final Value<DateTime> updatedAt;
|
||||||
const TransactionsCompanion({
|
const TransactionsCompanion({
|
||||||
this.id = const Value.absent(),
|
this.id = const Value.absent(),
|
||||||
this.name = const Value.absent(),
|
this.name = const Value.absent(),
|
||||||
@@ -987,6 +1131,7 @@ class TransactionsCompanion extends UpdateCompanion<Transaction> {
|
|||||||
this.checked = const Value.absent(),
|
this.checked = const Value.absent(),
|
||||||
this.accountId = const Value.absent(),
|
this.accountId = const Value.absent(),
|
||||||
this.recurringTransactionId = const Value.absent(),
|
this.recurringTransactionId = const Value.absent(),
|
||||||
|
this.updatedAt = const Value.absent(),
|
||||||
});
|
});
|
||||||
TransactionsCompanion.insert({
|
TransactionsCompanion.insert({
|
||||||
this.id = const Value.absent(),
|
this.id = const Value.absent(),
|
||||||
@@ -996,6 +1141,7 @@ class TransactionsCompanion extends UpdateCompanion<Transaction> {
|
|||||||
this.checked = const Value.absent(),
|
this.checked = const Value.absent(),
|
||||||
required int accountId,
|
required int accountId,
|
||||||
this.recurringTransactionId = const Value.absent(),
|
this.recurringTransactionId = const Value.absent(),
|
||||||
|
this.updatedAt = const Value.absent(),
|
||||||
}) : accountId = Value(accountId);
|
}) : accountId = Value(accountId);
|
||||||
static Insertable<Transaction> custom({
|
static Insertable<Transaction> custom({
|
||||||
Expression<int>? id,
|
Expression<int>? id,
|
||||||
@@ -1005,6 +1151,7 @@ class TransactionsCompanion extends UpdateCompanion<Transaction> {
|
|||||||
Expression<bool>? checked,
|
Expression<bool>? checked,
|
||||||
Expression<int>? accountId,
|
Expression<int>? accountId,
|
||||||
Expression<int>? recurringTransactionId,
|
Expression<int>? recurringTransactionId,
|
||||||
|
Expression<DateTime>? updatedAt,
|
||||||
}) {
|
}) {
|
||||||
return RawValuesInsertable({
|
return RawValuesInsertable({
|
||||||
if (id != null) 'id': id,
|
if (id != null) 'id': id,
|
||||||
@@ -1015,6 +1162,7 @@ class TransactionsCompanion extends UpdateCompanion<Transaction> {
|
|||||||
if (accountId != null) 'account_id': accountId,
|
if (accountId != null) 'account_id': accountId,
|
||||||
if (recurringTransactionId != null)
|
if (recurringTransactionId != null)
|
||||||
'recurring_transaction_id': recurringTransactionId,
|
'recurring_transaction_id': recurringTransactionId,
|
||||||
|
if (updatedAt != null) 'updated_at': updatedAt,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1026,6 +1174,7 @@ class TransactionsCompanion extends UpdateCompanion<Transaction> {
|
|||||||
Value<bool>? checked,
|
Value<bool>? checked,
|
||||||
Value<int>? accountId,
|
Value<int>? accountId,
|
||||||
Value<int?>? recurringTransactionId,
|
Value<int?>? recurringTransactionId,
|
||||||
|
Value<DateTime>? updatedAt,
|
||||||
}) {
|
}) {
|
||||||
return TransactionsCompanion(
|
return TransactionsCompanion(
|
||||||
id: id ?? this.id,
|
id: id ?? this.id,
|
||||||
@@ -1036,6 +1185,7 @@ class TransactionsCompanion extends UpdateCompanion<Transaction> {
|
|||||||
accountId: accountId ?? this.accountId,
|
accountId: accountId ?? this.accountId,
|
||||||
recurringTransactionId:
|
recurringTransactionId:
|
||||||
recurringTransactionId ?? this.recurringTransactionId,
|
recurringTransactionId ?? this.recurringTransactionId,
|
||||||
|
updatedAt: updatedAt ?? this.updatedAt,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1065,6 +1215,9 @@ class TransactionsCompanion extends UpdateCompanion<Transaction> {
|
|||||||
recurringTransactionId.value,
|
recurringTransactionId.value,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (updatedAt.present) {
|
||||||
|
map['updated_at'] = Variable<DateTime>(updatedAt.value);
|
||||||
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1073,10 +1226,11 @@ class TransactionsCompanion extends UpdateCompanion<Transaction> {
|
|||||||
return (StringBuffer('TransactionsCompanion(')
|
return (StringBuffer('TransactionsCompanion(')
|
||||||
..write('id: $id, ')
|
..write('id: $id, ')
|
||||||
..write('name: $name, ')
|
..write('name: $name, ')
|
||||||
..write('date: $date, ')
|
..write('date: $date, ')..write('amount: $amount, ')..write(
|
||||||
..write('amount: $amount, ')..write('checked: $checked, ')
|
'checked: $checked, ')
|
||||||
..write('accountId: $accountId, ')
|
..write('accountId: $accountId, ')..write(
|
||||||
..write('recurringTransactionId: $recurringTransactionId')
|
'recurringTransactionId: $recurringTransactionId, ')..write(
|
||||||
|
'updatedAt: $updatedAt')
|
||||||
..write(')'))
|
..write(')'))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
@@ -1101,9 +1255,17 @@ abstract class _$AppDatabase extends GeneratedDatabase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
typedef $$AccountsTableCreateCompanionBuilder =
|
typedef $$AccountsTableCreateCompanionBuilder =
|
||||||
AccountsCompanion Function({Value<int> id, Value<String> name});
|
AccountsCompanion Function({
|
||||||
|
Value<int> id,
|
||||||
|
Value<String> name,
|
||||||
|
Value<DateTime> updatedAt,
|
||||||
|
});
|
||||||
typedef $$AccountsTableUpdateCompanionBuilder =
|
typedef $$AccountsTableUpdateCompanionBuilder =
|
||||||
AccountsCompanion Function({Value<int> id, Value<String> name});
|
AccountsCompanion Function({
|
||||||
|
Value<int> id,
|
||||||
|
Value<String> name,
|
||||||
|
Value<DateTime> updatedAt,
|
||||||
|
});
|
||||||
|
|
||||||
final class $$AccountsTableReferences
|
final class $$AccountsTableReferences
|
||||||
extends BaseReferences<_$AppDatabase, $AccountsTable, Account> {
|
extends BaseReferences<_$AppDatabase, $AccountsTable, Account> {
|
||||||
@@ -1175,6 +1337,11 @@ class $$AccountsTableFilterComposer
|
|||||||
builder: (column) => ColumnFilters(column),
|
builder: (column) => ColumnFilters(column),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ColumnFilters<DateTime> get updatedAt => $composableBuilder(
|
||||||
|
column: $table.updatedAt,
|
||||||
|
builder: (column) => ColumnFilters(column),
|
||||||
|
);
|
||||||
|
|
||||||
Expression<bool> recurringTransactionsRefs(
|
Expression<bool> recurringTransactionsRefs(
|
||||||
Expression<bool> Function($$RecurringTransactionsTableFilterComposer f) f,
|
Expression<bool> Function($$RecurringTransactionsTableFilterComposer f) f,
|
||||||
) {
|
) {
|
||||||
@@ -1245,6 +1412,11 @@ class $$AccountsTableOrderingComposer
|
|||||||
column: $table.name,
|
column: $table.name,
|
||||||
builder: (column) => ColumnOrderings(column),
|
builder: (column) => ColumnOrderings(column),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ColumnOrderings<DateTime> get updatedAt => $composableBuilder(
|
||||||
|
column: $table.updatedAt,
|
||||||
|
builder: (column) => ColumnOrderings(column),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class $$AccountsTableAnnotationComposer
|
class $$AccountsTableAnnotationComposer
|
||||||
@@ -1262,6 +1434,9 @@ class $$AccountsTableAnnotationComposer
|
|||||||
GeneratedColumn<String> get name =>
|
GeneratedColumn<String> get name =>
|
||||||
$composableBuilder(column: $table.name, builder: (column) => column);
|
$composableBuilder(column: $table.name, builder: (column) => column);
|
||||||
|
|
||||||
|
GeneratedColumn<DateTime> get updatedAt =>
|
||||||
|
$composableBuilder(column: $table.updatedAt, builder: (column) => column);
|
||||||
|
|
||||||
Expression<T> recurringTransactionsRefs<T extends Object>(
|
Expression<T> recurringTransactionsRefs<T extends Object>(
|
||||||
Expression<T> Function($$RecurringTransactionsTableAnnotationComposer a) f,
|
Expression<T> Function($$RecurringTransactionsTableAnnotationComposer a) f,
|
||||||
) {
|
) {
|
||||||
@@ -1347,12 +1522,18 @@ class $$AccountsTableTableManager
|
|||||||
({
|
({
|
||||||
Value<int> id = const Value.absent(),
|
Value<int> id = const Value.absent(),
|
||||||
Value<String> name = const Value.absent(),
|
Value<String> name = const Value.absent(),
|
||||||
}) => AccountsCompanion(id: id, name: name),
|
Value<DateTime> updatedAt = const Value.absent(),
|
||||||
|
}) => AccountsCompanion(id: id, name: name, updatedAt: updatedAt),
|
||||||
createCompanionCallback:
|
createCompanionCallback:
|
||||||
({
|
({
|
||||||
Value<int> id = const Value.absent(),
|
Value<int> id = const Value.absent(),
|
||||||
Value<String> name = const Value.absent(),
|
Value<String> name = const Value.absent(),
|
||||||
}) => AccountsCompanion.insert(id: id, name: name),
|
Value<DateTime> updatedAt = const Value.absent(),
|
||||||
|
}) => AccountsCompanion.insert(
|
||||||
|
id: id,
|
||||||
|
name: name,
|
||||||
|
updatedAt: updatedAt,
|
||||||
|
),
|
||||||
withReferenceMapper: (p0) => p0
|
withReferenceMapper: (p0) => p0
|
||||||
.map(
|
.map(
|
||||||
(e) => (
|
(e) => (
|
||||||
@@ -1447,6 +1628,7 @@ typedef $$RecurringTransactionsTableCreateCompanionBuilder =
|
|||||||
required TimeFrameEnum timeFrame,
|
required TimeFrameEnum timeFrame,
|
||||||
Value<double> amount,
|
Value<double> amount,
|
||||||
required int accountId,
|
required int accountId,
|
||||||
|
Value<DateTime> updatedAt,
|
||||||
});
|
});
|
||||||
typedef $$RecurringTransactionsTableUpdateCompanionBuilder =
|
typedef $$RecurringTransactionsTableUpdateCompanionBuilder =
|
||||||
RecurringTransactionsCompanion Function({
|
RecurringTransactionsCompanion Function({
|
||||||
@@ -1456,6 +1638,7 @@ typedef $$RecurringTransactionsTableUpdateCompanionBuilder =
|
|||||||
Value<TimeFrameEnum> timeFrame,
|
Value<TimeFrameEnum> timeFrame,
|
||||||
Value<double> amount,
|
Value<double> amount,
|
||||||
Value<int> accountId,
|
Value<int> accountId,
|
||||||
|
Value<DateTime> updatedAt,
|
||||||
});
|
});
|
||||||
|
|
||||||
final class $$RecurringTransactionsTableReferences
|
final class $$RecurringTransactionsTableReferences
|
||||||
@@ -1551,6 +1734,11 @@ class $$RecurringTransactionsTableFilterComposer
|
|||||||
builder: (column) => ColumnFilters(column),
|
builder: (column) => ColumnFilters(column),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ColumnFilters<DateTime> get updatedAt => $composableBuilder(
|
||||||
|
column: $table.updatedAt,
|
||||||
|
builder: (column) => ColumnFilters(column),
|
||||||
|
);
|
||||||
|
|
||||||
$$AccountsTableFilterComposer get accountId {
|
$$AccountsTableFilterComposer get accountId {
|
||||||
final $$AccountsTableFilterComposer composer = $composerBuilder(
|
final $$AccountsTableFilterComposer composer = $composerBuilder(
|
||||||
composer: this,
|
composer: this,
|
||||||
@@ -1634,6 +1822,11 @@ class $$RecurringTransactionsTableOrderingComposer
|
|||||||
builder: (column) => ColumnOrderings(column),
|
builder: (column) => ColumnOrderings(column),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ColumnOrderings<DateTime> get updatedAt => $composableBuilder(
|
||||||
|
column: $table.updatedAt,
|
||||||
|
builder: (column) => ColumnOrderings(column),
|
||||||
|
);
|
||||||
|
|
||||||
$$AccountsTableOrderingComposer get accountId {
|
$$AccountsTableOrderingComposer get accountId {
|
||||||
final $$AccountsTableOrderingComposer composer = $composerBuilder(
|
final $$AccountsTableOrderingComposer composer = $composerBuilder(
|
||||||
composer: this,
|
composer: this,
|
||||||
@@ -1682,6 +1875,9 @@ class $$RecurringTransactionsTableAnnotationComposer
|
|||||||
GeneratedColumn<double> get amount =>
|
GeneratedColumn<double> get amount =>
|
||||||
$composableBuilder(column: $table.amount, builder: (column) => column);
|
$composableBuilder(column: $table.amount, builder: (column) => column);
|
||||||
|
|
||||||
|
GeneratedColumn<DateTime> get updatedAt =>
|
||||||
|
$composableBuilder(column: $table.updatedAt, builder: (column) => column);
|
||||||
|
|
||||||
$$AccountsTableAnnotationComposer get accountId {
|
$$AccountsTableAnnotationComposer get accountId {
|
||||||
final $$AccountsTableAnnotationComposer composer = $composerBuilder(
|
final $$AccountsTableAnnotationComposer composer = $composerBuilder(
|
||||||
composer: this,
|
composer: this,
|
||||||
@@ -1776,6 +1972,7 @@ class $$RecurringTransactionsTableTableManager
|
|||||||
Value<TimeFrameEnum> timeFrame = const Value.absent(),
|
Value<TimeFrameEnum> timeFrame = const Value.absent(),
|
||||||
Value<double> amount = const Value.absent(),
|
Value<double> amount = const Value.absent(),
|
||||||
Value<int> accountId = const Value.absent(),
|
Value<int> accountId = const Value.absent(),
|
||||||
|
Value<DateTime> updatedAt = const Value.absent(),
|
||||||
}) => RecurringTransactionsCompanion(
|
}) => RecurringTransactionsCompanion(
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
@@ -1783,6 +1980,7 @@ class $$RecurringTransactionsTableTableManager
|
|||||||
timeFrame: timeFrame,
|
timeFrame: timeFrame,
|
||||||
amount: amount,
|
amount: amount,
|
||||||
accountId: accountId,
|
accountId: accountId,
|
||||||
|
updatedAt: updatedAt,
|
||||||
),
|
),
|
||||||
createCompanionCallback:
|
createCompanionCallback:
|
||||||
({
|
({
|
||||||
@@ -1792,6 +1990,7 @@ class $$RecurringTransactionsTableTableManager
|
|||||||
required TimeFrameEnum timeFrame,
|
required TimeFrameEnum timeFrame,
|
||||||
Value<double> amount = const Value.absent(),
|
Value<double> amount = const Value.absent(),
|
||||||
required int accountId,
|
required int accountId,
|
||||||
|
Value<DateTime> updatedAt = const Value.absent(),
|
||||||
}) => RecurringTransactionsCompanion.insert(
|
}) => RecurringTransactionsCompanion.insert(
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
@@ -1799,6 +1998,7 @@ class $$RecurringTransactionsTableTableManager
|
|||||||
timeFrame: timeFrame,
|
timeFrame: timeFrame,
|
||||||
amount: amount,
|
amount: amount,
|
||||||
accountId: accountId,
|
accountId: accountId,
|
||||||
|
updatedAt: updatedAt,
|
||||||
),
|
),
|
||||||
withReferenceMapper: (p0) => p0
|
withReferenceMapper: (p0) => p0
|
||||||
.map(
|
.map(
|
||||||
@@ -1904,6 +2104,7 @@ typedef $$TransactionsTableCreateCompanionBuilder =
|
|||||||
Value<bool> checked,
|
Value<bool> checked,
|
||||||
required int accountId,
|
required int accountId,
|
||||||
Value<int?> recurringTransactionId,
|
Value<int?> recurringTransactionId,
|
||||||
|
Value<DateTime> updatedAt,
|
||||||
});
|
});
|
||||||
typedef $$TransactionsTableUpdateCompanionBuilder =
|
typedef $$TransactionsTableUpdateCompanionBuilder =
|
||||||
TransactionsCompanion Function({
|
TransactionsCompanion Function({
|
||||||
@@ -1914,6 +2115,7 @@ typedef $$TransactionsTableUpdateCompanionBuilder =
|
|||||||
Value<bool> checked,
|
Value<bool> checked,
|
||||||
Value<int> accountId,
|
Value<int> accountId,
|
||||||
Value<int?> recurringTransactionId,
|
Value<int?> recurringTransactionId,
|
||||||
|
Value<DateTime> updatedAt,
|
||||||
});
|
});
|
||||||
|
|
||||||
final class $$TransactionsTableReferences
|
final class $$TransactionsTableReferences
|
||||||
@@ -2000,6 +2202,11 @@ class $$TransactionsTableFilterComposer
|
|||||||
builder: (column) => ColumnFilters(column),
|
builder: (column) => ColumnFilters(column),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ColumnFilters<DateTime> get updatedAt => $composableBuilder(
|
||||||
|
column: $table.updatedAt,
|
||||||
|
builder: (column) => ColumnFilters(column),
|
||||||
|
);
|
||||||
|
|
||||||
$$AccountsTableFilterComposer get accountId {
|
$$AccountsTableFilterComposer get accountId {
|
||||||
final $$AccountsTableFilterComposer composer = $composerBuilder(
|
final $$AccountsTableFilterComposer composer = $composerBuilder(
|
||||||
composer: this,
|
composer: this,
|
||||||
@@ -2082,6 +2289,11 @@ class $$TransactionsTableOrderingComposer
|
|||||||
builder: (column) => ColumnOrderings(column),
|
builder: (column) => ColumnOrderings(column),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ColumnOrderings<DateTime> get updatedAt => $composableBuilder(
|
||||||
|
column: $table.updatedAt,
|
||||||
|
builder: (column) => ColumnOrderings(column),
|
||||||
|
);
|
||||||
|
|
||||||
$$AccountsTableOrderingComposer get accountId {
|
$$AccountsTableOrderingComposer get accountId {
|
||||||
final $$AccountsTableOrderingComposer composer = $composerBuilder(
|
final $$AccountsTableOrderingComposer composer = $composerBuilder(
|
||||||
composer: this,
|
composer: this,
|
||||||
@@ -2154,6 +2366,9 @@ class $$TransactionsTableAnnotationComposer
|
|||||||
GeneratedColumn<bool> get checked =>
|
GeneratedColumn<bool> get checked =>
|
||||||
$composableBuilder(column: $table.checked, builder: (column) => column);
|
$composableBuilder(column: $table.checked, builder: (column) => column);
|
||||||
|
|
||||||
|
GeneratedColumn<DateTime> get updatedAt =>
|
||||||
|
$composableBuilder(column: $table.updatedAt, builder: (column) => column);
|
||||||
|
|
||||||
$$AccountsTableAnnotationComposer get accountId {
|
$$AccountsTableAnnotationComposer get accountId {
|
||||||
final $$AccountsTableAnnotationComposer composer = $composerBuilder(
|
final $$AccountsTableAnnotationComposer composer = $composerBuilder(
|
||||||
composer: this,
|
composer: this,
|
||||||
@@ -2237,6 +2452,7 @@ class $$TransactionsTableTableManager
|
|||||||
Value<bool> checked = const Value.absent(),
|
Value<bool> checked = const Value.absent(),
|
||||||
Value<int> accountId = const Value.absent(),
|
Value<int> accountId = const Value.absent(),
|
||||||
Value<int?> recurringTransactionId = const Value.absent(),
|
Value<int?> recurringTransactionId = const Value.absent(),
|
||||||
|
Value<DateTime> updatedAt = const Value.absent(),
|
||||||
}) => TransactionsCompanion(
|
}) => TransactionsCompanion(
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
@@ -2245,6 +2461,7 @@ class $$TransactionsTableTableManager
|
|||||||
checked: checked,
|
checked: checked,
|
||||||
accountId: accountId,
|
accountId: accountId,
|
||||||
recurringTransactionId: recurringTransactionId,
|
recurringTransactionId: recurringTransactionId,
|
||||||
|
updatedAt: updatedAt,
|
||||||
),
|
),
|
||||||
createCompanionCallback:
|
createCompanionCallback:
|
||||||
({
|
({
|
||||||
@@ -2255,6 +2472,7 @@ class $$TransactionsTableTableManager
|
|||||||
Value<bool> checked = const Value.absent(),
|
Value<bool> checked = const Value.absent(),
|
||||||
required int accountId,
|
required int accountId,
|
||||||
Value<int?> recurringTransactionId = const Value.absent(),
|
Value<int?> recurringTransactionId = const Value.absent(),
|
||||||
|
Value<DateTime> updatedAt = const Value.absent(),
|
||||||
}) => TransactionsCompanion.insert(
|
}) => TransactionsCompanion.insert(
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
@@ -2263,6 +2481,7 @@ class $$TransactionsTableTableManager
|
|||||||
checked: checked,
|
checked: checked,
|
||||||
accountId: accountId,
|
accountId: accountId,
|
||||||
recurringTransactionId: recurringTransactionId,
|
recurringTransactionId: recurringTransactionId,
|
||||||
|
updatedAt: updatedAt,
|
||||||
),
|
),
|
||||||
withReferenceMapper: (p0) => p0
|
withReferenceMapper: (p0) => p0
|
||||||
.map(
|
.map(
|
||||||
|
|||||||
Reference in New Issue
Block a user