feat: add alot
This commit is contained in:
@@ -553,16 +553,6 @@ class $BarTabsTable extends BarTabs with TableInfo<$BarTabsTable, BarTabRow> {
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: true,
|
||||
);
|
||||
static const VerificationMeta _statusMeta = const VerificationMeta('status');
|
||||
@override
|
||||
late final GeneratedColumn<String> status = GeneratedColumn<String>(
|
||||
'status',
|
||||
aliasedName,
|
||||
false,
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: false,
|
||||
defaultValue: const Constant('open'),
|
||||
);
|
||||
static const VerificationMeta _openedAtMeta = const VerificationMeta(
|
||||
'openedAt',
|
||||
);
|
||||
@@ -574,17 +564,6 @@ class $BarTabsTable extends BarTabs with TableInfo<$BarTabsTable, BarTabRow> {
|
||||
type: DriftSqlType.dateTime,
|
||||
requiredDuringInsert: true,
|
||||
);
|
||||
static const VerificationMeta _closedAtMeta = const VerificationMeta(
|
||||
'closedAt',
|
||||
);
|
||||
@override
|
||||
late final GeneratedColumn<DateTime> closedAt = GeneratedColumn<DateTime>(
|
||||
'closed_at',
|
||||
aliasedName,
|
||||
true,
|
||||
type: DriftSqlType.dateTime,
|
||||
requiredDuringInsert: false,
|
||||
);
|
||||
static const VerificationMeta _versionMeta = const VerificationMeta(
|
||||
'version',
|
||||
);
|
||||
@@ -598,14 +577,7 @@ class $BarTabsTable extends BarTabs with TableInfo<$BarTabsTable, BarTabRow> {
|
||||
defaultValue: const Constant(0),
|
||||
);
|
||||
@override
|
||||
List<GeneratedColumn> get $columns => [
|
||||
id,
|
||||
customerName,
|
||||
status,
|
||||
openedAt,
|
||||
closedAt,
|
||||
version,
|
||||
];
|
||||
List<GeneratedColumn> get $columns => [id, customerName, openedAt, version];
|
||||
@override
|
||||
String get aliasedName => _alias ?? actualTableName;
|
||||
@override
|
||||
@@ -634,12 +606,6 @@ class $BarTabsTable extends BarTabs with TableInfo<$BarTabsTable, BarTabRow> {
|
||||
} else if (isInserting) {
|
||||
context.missing(_customerNameMeta);
|
||||
}
|
||||
if (data.containsKey('status')) {
|
||||
context.handle(
|
||||
_statusMeta,
|
||||
status.isAcceptableOrUnknown(data['status']!, _statusMeta),
|
||||
);
|
||||
}
|
||||
if (data.containsKey('opened_at')) {
|
||||
context.handle(
|
||||
_openedAtMeta,
|
||||
@@ -648,12 +614,6 @@ class $BarTabsTable extends BarTabs with TableInfo<$BarTabsTable, BarTabRow> {
|
||||
} else if (isInserting) {
|
||||
context.missing(_openedAtMeta);
|
||||
}
|
||||
if (data.containsKey('closed_at')) {
|
||||
context.handle(
|
||||
_closedAtMeta,
|
||||
closedAt.isAcceptableOrUnknown(data['closed_at']!, _closedAtMeta),
|
||||
);
|
||||
}
|
||||
if (data.containsKey('version')) {
|
||||
context.handle(
|
||||
_versionMeta,
|
||||
@@ -677,18 +637,10 @@ class $BarTabsTable extends BarTabs with TableInfo<$BarTabsTable, BarTabRow> {
|
||||
DriftSqlType.string,
|
||||
data['${effectivePrefix}customer_name'],
|
||||
)!,
|
||||
status: attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.string,
|
||||
data['${effectivePrefix}status'],
|
||||
)!,
|
||||
openedAt: attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.dateTime,
|
||||
data['${effectivePrefix}opened_at'],
|
||||
)!,
|
||||
closedAt: attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.dateTime,
|
||||
data['${effectivePrefix}closed_at'],
|
||||
),
|
||||
version: attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.int,
|
||||
data['${effectivePrefix}version'],
|
||||
@@ -705,16 +657,12 @@ class $BarTabsTable extends BarTabs with TableInfo<$BarTabsTable, BarTabRow> {
|
||||
class BarTabRow extends DataClass implements Insertable<BarTabRow> {
|
||||
final String id;
|
||||
final String customerName;
|
||||
final String status;
|
||||
final DateTime openedAt;
|
||||
final DateTime? closedAt;
|
||||
final int version;
|
||||
const BarTabRow({
|
||||
required this.id,
|
||||
required this.customerName,
|
||||
required this.status,
|
||||
required this.openedAt,
|
||||
this.closedAt,
|
||||
required this.version,
|
||||
});
|
||||
@override
|
||||
@@ -722,11 +670,7 @@ class BarTabRow extends DataClass implements Insertable<BarTabRow> {
|
||||
final map = <String, Expression>{};
|
||||
map['id'] = Variable<String>(id);
|
||||
map['customer_name'] = Variable<String>(customerName);
|
||||
map['status'] = Variable<String>(status);
|
||||
map['opened_at'] = Variable<DateTime>(openedAt);
|
||||
if (!nullToAbsent || closedAt != null) {
|
||||
map['closed_at'] = Variable<DateTime>(closedAt);
|
||||
}
|
||||
map['version'] = Variable<int>(version);
|
||||
return map;
|
||||
}
|
||||
@@ -735,11 +679,7 @@ class BarTabRow extends DataClass implements Insertable<BarTabRow> {
|
||||
return BarTabsCompanion(
|
||||
id: Value(id),
|
||||
customerName: Value(customerName),
|
||||
status: Value(status),
|
||||
openedAt: Value(openedAt),
|
||||
closedAt: closedAt == null && nullToAbsent
|
||||
? const Value.absent()
|
||||
: Value(closedAt),
|
||||
version: Value(version),
|
||||
);
|
||||
}
|
||||
@@ -752,9 +692,7 @@ class BarTabRow extends DataClass implements Insertable<BarTabRow> {
|
||||
return BarTabRow(
|
||||
id: serializer.fromJson<String>(json['id']),
|
||||
customerName: serializer.fromJson<String>(json['customerName']),
|
||||
status: serializer.fromJson<String>(json['status']),
|
||||
openedAt: serializer.fromJson<DateTime>(json['openedAt']),
|
||||
closedAt: serializer.fromJson<DateTime?>(json['closedAt']),
|
||||
version: serializer.fromJson<int>(json['version']),
|
||||
);
|
||||
}
|
||||
@@ -764,9 +702,7 @@ class BarTabRow extends DataClass implements Insertable<BarTabRow> {
|
||||
return <String, dynamic>{
|
||||
'id': serializer.toJson<String>(id),
|
||||
'customerName': serializer.toJson<String>(customerName),
|
||||
'status': serializer.toJson<String>(status),
|
||||
'openedAt': serializer.toJson<DateTime>(openedAt),
|
||||
'closedAt': serializer.toJson<DateTime?>(closedAt),
|
||||
'version': serializer.toJson<int>(version),
|
||||
};
|
||||
}
|
||||
@@ -774,16 +710,12 @@ class BarTabRow extends DataClass implements Insertable<BarTabRow> {
|
||||
BarTabRow copyWith({
|
||||
String? id,
|
||||
String? customerName,
|
||||
String? status,
|
||||
DateTime? openedAt,
|
||||
Value<DateTime?> closedAt = const Value.absent(),
|
||||
int? version,
|
||||
}) => BarTabRow(
|
||||
id: id ?? this.id,
|
||||
customerName: customerName ?? this.customerName,
|
||||
status: status ?? this.status,
|
||||
openedAt: openedAt ?? this.openedAt,
|
||||
closedAt: closedAt.present ? closedAt.value : this.closedAt,
|
||||
version: version ?? this.version,
|
||||
);
|
||||
BarTabRow copyWithCompanion(BarTabsCompanion data) {
|
||||
@@ -792,9 +724,7 @@ class BarTabRow extends DataClass implements Insertable<BarTabRow> {
|
||||
customerName: data.customerName.present
|
||||
? data.customerName.value
|
||||
: this.customerName,
|
||||
status: data.status.present ? data.status.value : this.status,
|
||||
openedAt: data.openedAt.present ? data.openedAt.value : this.openedAt,
|
||||
closedAt: data.closedAt.present ? data.closedAt.value : this.closedAt,
|
||||
version: data.version.present ? data.version.value : this.version,
|
||||
);
|
||||
}
|
||||
@@ -804,52 +734,41 @@ class BarTabRow extends DataClass implements Insertable<BarTabRow> {
|
||||
return (StringBuffer('BarTabRow(')
|
||||
..write('id: $id, ')
|
||||
..write('customerName: $customerName, ')
|
||||
..write('status: $status, ')
|
||||
..write('openedAt: $openedAt, ')
|
||||
..write('closedAt: $closedAt, ')
|
||||
..write('version: $version')
|
||||
..write(')'))
|
||||
.toString();
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
Object.hash(id, customerName, status, openedAt, closedAt, version);
|
||||
int get hashCode => Object.hash(id, customerName, openedAt, version);
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
(other is BarTabRow &&
|
||||
other.id == this.id &&
|
||||
other.customerName == this.customerName &&
|
||||
other.status == this.status &&
|
||||
other.openedAt == this.openedAt &&
|
||||
other.closedAt == this.closedAt &&
|
||||
other.version == this.version);
|
||||
}
|
||||
|
||||
class BarTabsCompanion extends UpdateCompanion<BarTabRow> {
|
||||
final Value<String> id;
|
||||
final Value<String> customerName;
|
||||
final Value<String> status;
|
||||
final Value<DateTime> openedAt;
|
||||
final Value<DateTime?> closedAt;
|
||||
final Value<int> version;
|
||||
final Value<int> rowid;
|
||||
const BarTabsCompanion({
|
||||
this.id = const Value.absent(),
|
||||
this.customerName = const Value.absent(),
|
||||
this.status = const Value.absent(),
|
||||
this.openedAt = const Value.absent(),
|
||||
this.closedAt = const Value.absent(),
|
||||
this.version = const Value.absent(),
|
||||
this.rowid = const Value.absent(),
|
||||
});
|
||||
BarTabsCompanion.insert({
|
||||
required String id,
|
||||
required String customerName,
|
||||
this.status = const Value.absent(),
|
||||
required DateTime openedAt,
|
||||
this.closedAt = const Value.absent(),
|
||||
this.version = const Value.absent(),
|
||||
this.rowid = const Value.absent(),
|
||||
}) : id = Value(id),
|
||||
@@ -858,18 +777,14 @@ class BarTabsCompanion extends UpdateCompanion<BarTabRow> {
|
||||
static Insertable<BarTabRow> custom({
|
||||
Expression<String>? id,
|
||||
Expression<String>? customerName,
|
||||
Expression<String>? status,
|
||||
Expression<DateTime>? openedAt,
|
||||
Expression<DateTime>? closedAt,
|
||||
Expression<int>? version,
|
||||
Expression<int>? rowid,
|
||||
}) {
|
||||
return RawValuesInsertable({
|
||||
if (id != null) 'id': id,
|
||||
if (customerName != null) 'customer_name': customerName,
|
||||
if (status != null) 'status': status,
|
||||
if (openedAt != null) 'opened_at': openedAt,
|
||||
if (closedAt != null) 'closed_at': closedAt,
|
||||
if (version != null) 'version': version,
|
||||
if (rowid != null) 'rowid': rowid,
|
||||
});
|
||||
@@ -878,18 +793,14 @@ class BarTabsCompanion extends UpdateCompanion<BarTabRow> {
|
||||
BarTabsCompanion copyWith({
|
||||
Value<String>? id,
|
||||
Value<String>? customerName,
|
||||
Value<String>? status,
|
||||
Value<DateTime>? openedAt,
|
||||
Value<DateTime?>? closedAt,
|
||||
Value<int>? version,
|
||||
Value<int>? rowid,
|
||||
}) {
|
||||
return BarTabsCompanion(
|
||||
id: id ?? this.id,
|
||||
customerName: customerName ?? this.customerName,
|
||||
status: status ?? this.status,
|
||||
openedAt: openedAt ?? this.openedAt,
|
||||
closedAt: closedAt ?? this.closedAt,
|
||||
version: version ?? this.version,
|
||||
rowid: rowid ?? this.rowid,
|
||||
);
|
||||
@@ -904,15 +815,9 @@ class BarTabsCompanion extends UpdateCompanion<BarTabRow> {
|
||||
if (customerName.present) {
|
||||
map['customer_name'] = Variable<String>(customerName.value);
|
||||
}
|
||||
if (status.present) {
|
||||
map['status'] = Variable<String>(status.value);
|
||||
}
|
||||
if (openedAt.present) {
|
||||
map['opened_at'] = Variable<DateTime>(openedAt.value);
|
||||
}
|
||||
if (closedAt.present) {
|
||||
map['closed_at'] = Variable<DateTime>(closedAt.value);
|
||||
}
|
||||
if (version.present) {
|
||||
map['version'] = Variable<int>(version.value);
|
||||
}
|
||||
@@ -927,9 +832,7 @@ class BarTabsCompanion extends UpdateCompanion<BarTabRow> {
|
||||
return (StringBuffer('BarTabsCompanion(')
|
||||
..write('id: $id, ')
|
||||
..write('customerName: $customerName, ')
|
||||
..write('status: $status, ')
|
||||
..write('openedAt: $openedAt, ')
|
||||
..write('closedAt: $closedAt, ')
|
||||
..write('version: $version, ')
|
||||
..write('rowid: $rowid')
|
||||
..write(')'))
|
||||
@@ -1783,18 +1686,16 @@ class $ClosedTabsTable extends ClosedTabs
|
||||
type: DriftSqlType.dateTime,
|
||||
requiredDuringInsert: true,
|
||||
);
|
||||
static const VerificationMeta _paymentMethodMeta = const VerificationMeta(
|
||||
'paymentMethod',
|
||||
);
|
||||
@override
|
||||
late final GeneratedColumn<String> paymentMethod = GeneratedColumn<String>(
|
||||
late final GeneratedColumnWithTypeConverter<PaymentMethod, String>
|
||||
paymentMethod = GeneratedColumn<String>(
|
||||
'payment_method',
|
||||
aliasedName,
|
||||
false,
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: false,
|
||||
defaultValue: const Constant('cash'),
|
||||
);
|
||||
).withConverter<PaymentMethod>($ClosedTabsTable.$converterpaymentMethod);
|
||||
@override
|
||||
List<GeneratedColumn> get $columns => [
|
||||
id,
|
||||
@@ -1850,15 +1751,6 @@ class $ClosedTabsTable extends ClosedTabs
|
||||
} else if (isInserting) {
|
||||
context.missing(_closedAtMeta);
|
||||
}
|
||||
if (data.containsKey('payment_method')) {
|
||||
context.handle(
|
||||
_paymentMethodMeta,
|
||||
paymentMethod.isAcceptableOrUnknown(
|
||||
data['payment_method']!,
|
||||
_paymentMethodMeta,
|
||||
),
|
||||
);
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
@@ -1884,10 +1776,12 @@ class $ClosedTabsTable extends ClosedTabs
|
||||
DriftSqlType.dateTime,
|
||||
data['${effectivePrefix}closed_at'],
|
||||
)!,
|
||||
paymentMethod: attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.string,
|
||||
data['${effectivePrefix}payment_method'],
|
||||
)!,
|
||||
paymentMethod: $ClosedTabsTable.$converterpaymentMethod.fromSql(
|
||||
attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.string,
|
||||
data['${effectivePrefix}payment_method'],
|
||||
)!,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1895,6 +1789,9 @@ class $ClosedTabsTable extends ClosedTabs
|
||||
$ClosedTabsTable createAlias(String alias) {
|
||||
return $ClosedTabsTable(attachedDatabase, alias);
|
||||
}
|
||||
|
||||
static TypeConverter<PaymentMethod, String> $converterpaymentMethod =
|
||||
const PaymentMethodConverter();
|
||||
}
|
||||
|
||||
class ClosedTabsRow extends DataClass implements Insertable<ClosedTabsRow> {
|
||||
@@ -1902,7 +1799,7 @@ class ClosedTabsRow extends DataClass implements Insertable<ClosedTabsRow> {
|
||||
final String originalTabId;
|
||||
final String customerName;
|
||||
final DateTime closedAt;
|
||||
final String paymentMethod;
|
||||
final PaymentMethod paymentMethod;
|
||||
const ClosedTabsRow({
|
||||
required this.id,
|
||||
required this.originalTabId,
|
||||
@@ -1917,7 +1814,11 @@ class ClosedTabsRow extends DataClass implements Insertable<ClosedTabsRow> {
|
||||
map['original_tab_id'] = Variable<String>(originalTabId);
|
||||
map['customer_name'] = Variable<String>(customerName);
|
||||
map['closed_at'] = Variable<DateTime>(closedAt);
|
||||
map['payment_method'] = Variable<String>(paymentMethod);
|
||||
{
|
||||
map['payment_method'] = Variable<String>(
|
||||
$ClosedTabsTable.$converterpaymentMethod.toSql(paymentMethod),
|
||||
);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -1941,7 +1842,7 @@ class ClosedTabsRow extends DataClass implements Insertable<ClosedTabsRow> {
|
||||
originalTabId: serializer.fromJson<String>(json['originalTabId']),
|
||||
customerName: serializer.fromJson<String>(json['customerName']),
|
||||
closedAt: serializer.fromJson<DateTime>(json['closedAt']),
|
||||
paymentMethod: serializer.fromJson<String>(json['paymentMethod']),
|
||||
paymentMethod: serializer.fromJson<PaymentMethod>(json['paymentMethod']),
|
||||
);
|
||||
}
|
||||
@override
|
||||
@@ -1952,7 +1853,7 @@ class ClosedTabsRow extends DataClass implements Insertable<ClosedTabsRow> {
|
||||
'originalTabId': serializer.toJson<String>(originalTabId),
|
||||
'customerName': serializer.toJson<String>(customerName),
|
||||
'closedAt': serializer.toJson<DateTime>(closedAt),
|
||||
'paymentMethod': serializer.toJson<String>(paymentMethod),
|
||||
'paymentMethod': serializer.toJson<PaymentMethod>(paymentMethod),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1961,7 +1862,7 @@ class ClosedTabsRow extends DataClass implements Insertable<ClosedTabsRow> {
|
||||
String? originalTabId,
|
||||
String? customerName,
|
||||
DateTime? closedAt,
|
||||
String? paymentMethod,
|
||||
PaymentMethod? paymentMethod,
|
||||
}) => ClosedTabsRow(
|
||||
id: id ?? this.id,
|
||||
originalTabId: originalTabId ?? this.originalTabId,
|
||||
@@ -2016,7 +1917,7 @@ class ClosedTabsCompanion extends UpdateCompanion<ClosedTabsRow> {
|
||||
final Value<String> originalTabId;
|
||||
final Value<String> customerName;
|
||||
final Value<DateTime> closedAt;
|
||||
final Value<String> paymentMethod;
|
||||
final Value<PaymentMethod> paymentMethod;
|
||||
final Value<int> rowid;
|
||||
const ClosedTabsCompanion({
|
||||
this.id = const Value.absent(),
|
||||
@@ -2060,7 +1961,7 @@ class ClosedTabsCompanion extends UpdateCompanion<ClosedTabsRow> {
|
||||
Value<String>? originalTabId,
|
||||
Value<String>? customerName,
|
||||
Value<DateTime>? closedAt,
|
||||
Value<String>? paymentMethod,
|
||||
Value<PaymentMethod>? paymentMethod,
|
||||
Value<int>? rowid,
|
||||
}) {
|
||||
return ClosedTabsCompanion(
|
||||
@@ -2089,7 +1990,9 @@ class ClosedTabsCompanion extends UpdateCompanion<ClosedTabsRow> {
|
||||
map['closed_at'] = Variable<DateTime>(closedAt.value);
|
||||
}
|
||||
if (paymentMethod.present) {
|
||||
map['payment_method'] = Variable<String>(paymentMethod.value);
|
||||
map['payment_method'] = Variable<String>(
|
||||
$ClosedTabsTable.$converterpaymentMethod.toSql(paymentMethod.value),
|
||||
);
|
||||
}
|
||||
if (rowid.present) {
|
||||
map['rowid'] = Variable<int>(rowid.value);
|
||||
@@ -3532,15 +3435,17 @@ class $ProcessedRemoteCommandsTable extends ProcessedRemoteCommands
|
||||
type: DriftSqlType.dateTime,
|
||||
requiredDuringInsert: true,
|
||||
);
|
||||
static const VerificationMeta _resultMeta = const VerificationMeta('result');
|
||||
@override
|
||||
late final GeneratedColumn<String> result = GeneratedColumn<String>(
|
||||
'result',
|
||||
aliasedName,
|
||||
false,
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: true,
|
||||
);
|
||||
late final GeneratedColumnWithTypeConverter<CommandResult, String> result =
|
||||
GeneratedColumn<String>(
|
||||
'result',
|
||||
aliasedName,
|
||||
false,
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: true,
|
||||
).withConverter<CommandResult>(
|
||||
$ProcessedRemoteCommandsTable.$converterresult,
|
||||
);
|
||||
@override
|
||||
List<GeneratedColumn> get $columns => [
|
||||
commandId,
|
||||
@@ -3590,14 +3495,6 @@ class $ProcessedRemoteCommandsTable extends ProcessedRemoteCommands
|
||||
} else if (isInserting) {
|
||||
context.missing(_processedAtMeta);
|
||||
}
|
||||
if (data.containsKey('result')) {
|
||||
context.handle(
|
||||
_resultMeta,
|
||||
result.isAcceptableOrUnknown(data['result']!, _resultMeta),
|
||||
);
|
||||
} else if (isInserting) {
|
||||
context.missing(_resultMeta);
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
@@ -3622,10 +3519,12 @@ class $ProcessedRemoteCommandsTable extends ProcessedRemoteCommands
|
||||
DriftSqlType.dateTime,
|
||||
data['${effectivePrefix}processed_at'],
|
||||
)!,
|
||||
result: attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.string,
|
||||
data['${effectivePrefix}result'],
|
||||
)!,
|
||||
result: $ProcessedRemoteCommandsTable.$converterresult.fromSql(
|
||||
attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.string,
|
||||
data['${effectivePrefix}result'],
|
||||
)!,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3633,6 +3532,9 @@ class $ProcessedRemoteCommandsTable extends ProcessedRemoteCommands
|
||||
$ProcessedRemoteCommandsTable createAlias(String alias) {
|
||||
return $ProcessedRemoteCommandsTable(attachedDatabase, alias);
|
||||
}
|
||||
|
||||
static JsonTypeConverter2<CommandResult, String, String> $converterresult =
|
||||
const EnumNameConverter<CommandResult>(CommandResult.values);
|
||||
}
|
||||
|
||||
class ProcessedRemoteCommandRow extends DataClass
|
||||
@@ -3640,7 +3542,7 @@ class ProcessedRemoteCommandRow extends DataClass
|
||||
final String commandId;
|
||||
final String commandType;
|
||||
final DateTime processedAt;
|
||||
final String result;
|
||||
final CommandResult result;
|
||||
const ProcessedRemoteCommandRow({
|
||||
required this.commandId,
|
||||
required this.commandType,
|
||||
@@ -3653,7 +3555,11 @@ class ProcessedRemoteCommandRow extends DataClass
|
||||
map['command_id'] = Variable<String>(commandId);
|
||||
map['command_type'] = Variable<String>(commandType);
|
||||
map['processed_at'] = Variable<DateTime>(processedAt);
|
||||
map['result'] = Variable<String>(result);
|
||||
{
|
||||
map['result'] = Variable<String>(
|
||||
$ProcessedRemoteCommandsTable.$converterresult.toSql(result),
|
||||
);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -3675,7 +3581,9 @@ class ProcessedRemoteCommandRow extends DataClass
|
||||
commandId: serializer.fromJson<String>(json['commandId']),
|
||||
commandType: serializer.fromJson<String>(json['commandType']),
|
||||
processedAt: serializer.fromJson<DateTime>(json['processedAt']),
|
||||
result: serializer.fromJson<String>(json['result']),
|
||||
result: $ProcessedRemoteCommandsTable.$converterresult.fromJson(
|
||||
serializer.fromJson<String>(json['result']),
|
||||
),
|
||||
);
|
||||
}
|
||||
@override
|
||||
@@ -3685,7 +3593,9 @@ class ProcessedRemoteCommandRow extends DataClass
|
||||
'commandId': serializer.toJson<String>(commandId),
|
||||
'commandType': serializer.toJson<String>(commandType),
|
||||
'processedAt': serializer.toJson<DateTime>(processedAt),
|
||||
'result': serializer.toJson<String>(result),
|
||||
'result': serializer.toJson<String>(
|
||||
$ProcessedRemoteCommandsTable.$converterresult.toJson(result),
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3693,7 +3603,7 @@ class ProcessedRemoteCommandRow extends DataClass
|
||||
String? commandId,
|
||||
String? commandType,
|
||||
DateTime? processedAt,
|
||||
String? result,
|
||||
CommandResult? result,
|
||||
}) => ProcessedRemoteCommandRow(
|
||||
commandId: commandId ?? this.commandId,
|
||||
commandType: commandType ?? this.commandType,
|
||||
@@ -3743,7 +3653,7 @@ class ProcessedRemoteCommandsCompanion
|
||||
final Value<String> commandId;
|
||||
final Value<String> commandType;
|
||||
final Value<DateTime> processedAt;
|
||||
final Value<String> result;
|
||||
final Value<CommandResult> result;
|
||||
final Value<int> rowid;
|
||||
const ProcessedRemoteCommandsCompanion({
|
||||
this.commandId = const Value.absent(),
|
||||
@@ -3756,7 +3666,7 @@ class ProcessedRemoteCommandsCompanion
|
||||
required String commandId,
|
||||
required String commandType,
|
||||
required DateTime processedAt,
|
||||
required String result,
|
||||
required CommandResult result,
|
||||
this.rowid = const Value.absent(),
|
||||
}) : commandId = Value(commandId),
|
||||
commandType = Value(commandType),
|
||||
@@ -3782,7 +3692,7 @@ class ProcessedRemoteCommandsCompanion
|
||||
Value<String>? commandId,
|
||||
Value<String>? commandType,
|
||||
Value<DateTime>? processedAt,
|
||||
Value<String>? result,
|
||||
Value<CommandResult>? result,
|
||||
Value<int>? rowid,
|
||||
}) {
|
||||
return ProcessedRemoteCommandsCompanion(
|
||||
@@ -3807,7 +3717,9 @@ class ProcessedRemoteCommandsCompanion
|
||||
map['processed_at'] = Variable<DateTime>(processedAt.value);
|
||||
}
|
||||
if (result.present) {
|
||||
map['result'] = Variable<String>(result.value);
|
||||
map['result'] = Variable<String>(
|
||||
$ProcessedRemoteCommandsTable.$converterresult.toSql(result.value),
|
||||
);
|
||||
}
|
||||
if (rowid.present) {
|
||||
map['rowid'] = Variable<int>(rowid.value);
|
||||
@@ -4245,9 +4157,7 @@ typedef $$BarTabsTableCreateCompanionBuilder =
|
||||
BarTabsCompanion Function({
|
||||
required String id,
|
||||
required String customerName,
|
||||
Value<String> status,
|
||||
required DateTime openedAt,
|
||||
Value<DateTime?> closedAt,
|
||||
Value<int> version,
|
||||
Value<int> rowid,
|
||||
});
|
||||
@@ -4255,9 +4165,7 @@ typedef $$BarTabsTableUpdateCompanionBuilder =
|
||||
BarTabsCompanion Function({
|
||||
Value<String> id,
|
||||
Value<String> customerName,
|
||||
Value<String> status,
|
||||
Value<DateTime> openedAt,
|
||||
Value<DateTime?> closedAt,
|
||||
Value<int> version,
|
||||
Value<int> rowid,
|
||||
});
|
||||
@@ -4304,21 +4212,11 @@ class $$BarTabsTableFilterComposer
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
|
||||
ColumnFilters<String> get status => $composableBuilder(
|
||||
column: $table.status,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
|
||||
ColumnFilters<DateTime> get openedAt => $composableBuilder(
|
||||
column: $table.openedAt,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
|
||||
ColumnFilters<DateTime> get closedAt => $composableBuilder(
|
||||
column: $table.closedAt,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
|
||||
ColumnFilters<int> get version => $composableBuilder(
|
||||
column: $table.version,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
@@ -4369,21 +4267,11 @@ class $$BarTabsTableOrderingComposer
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
|
||||
ColumnOrderings<String> get status => $composableBuilder(
|
||||
column: $table.status,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
|
||||
ColumnOrderings<DateTime> get openedAt => $composableBuilder(
|
||||
column: $table.openedAt,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
|
||||
ColumnOrderings<DateTime> get closedAt => $composableBuilder(
|
||||
column: $table.closedAt,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
|
||||
ColumnOrderings<int> get version => $composableBuilder(
|
||||
column: $table.version,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
@@ -4407,15 +4295,9 @@ class $$BarTabsTableAnnotationComposer
|
||||
builder: (column) => column,
|
||||
);
|
||||
|
||||
GeneratedColumn<String> get status =>
|
||||
$composableBuilder(column: $table.status, builder: (column) => column);
|
||||
|
||||
GeneratedColumn<DateTime> get openedAt =>
|
||||
$composableBuilder(column: $table.openedAt, builder: (column) => column);
|
||||
|
||||
GeneratedColumn<DateTime> get closedAt =>
|
||||
$composableBuilder(column: $table.closedAt, builder: (column) => column);
|
||||
|
||||
GeneratedColumn<int> get version =>
|
||||
$composableBuilder(column: $table.version, builder: (column) => column);
|
||||
|
||||
@@ -4475,17 +4357,13 @@ class $$BarTabsTableTableManager
|
||||
({
|
||||
Value<String> id = const Value.absent(),
|
||||
Value<String> customerName = const Value.absent(),
|
||||
Value<String> status = const Value.absent(),
|
||||
Value<DateTime> openedAt = const Value.absent(),
|
||||
Value<DateTime?> closedAt = const Value.absent(),
|
||||
Value<int> version = const Value.absent(),
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) => BarTabsCompanion(
|
||||
id: id,
|
||||
customerName: customerName,
|
||||
status: status,
|
||||
openedAt: openedAt,
|
||||
closedAt: closedAt,
|
||||
version: version,
|
||||
rowid: rowid,
|
||||
),
|
||||
@@ -4493,17 +4371,13 @@ class $$BarTabsTableTableManager
|
||||
({
|
||||
required String id,
|
||||
required String customerName,
|
||||
Value<String> status = const Value.absent(),
|
||||
required DateTime openedAt,
|
||||
Value<DateTime?> closedAt = const Value.absent(),
|
||||
Value<int> version = const Value.absent(),
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) => BarTabsCompanion.insert(
|
||||
id: id,
|
||||
customerName: customerName,
|
||||
status: status,
|
||||
openedAt: openedAt,
|
||||
closedAt: closedAt,
|
||||
version: version,
|
||||
rowid: rowid,
|
||||
),
|
||||
@@ -5430,7 +5304,7 @@ typedef $$ClosedTabsTableCreateCompanionBuilder =
|
||||
required String originalTabId,
|
||||
required String customerName,
|
||||
required DateTime closedAt,
|
||||
Value<String> paymentMethod,
|
||||
Value<PaymentMethod> paymentMethod,
|
||||
Value<int> rowid,
|
||||
});
|
||||
typedef $$ClosedTabsTableUpdateCompanionBuilder =
|
||||
@@ -5439,7 +5313,7 @@ typedef $$ClosedTabsTableUpdateCompanionBuilder =
|
||||
Value<String> originalTabId,
|
||||
Value<String> customerName,
|
||||
Value<DateTime> closedAt,
|
||||
Value<String> paymentMethod,
|
||||
Value<PaymentMethod> paymentMethod,
|
||||
Value<int> rowid,
|
||||
});
|
||||
|
||||
@@ -5472,9 +5346,10 @@ class $$ClosedTabsTableFilterComposer
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
|
||||
ColumnFilters<String> get paymentMethod => $composableBuilder(
|
||||
ColumnWithTypeConverterFilters<PaymentMethod, PaymentMethod, String>
|
||||
get paymentMethod => $composableBuilder(
|
||||
column: $table.paymentMethod,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
builder: (column) => ColumnWithTypeConverterFilters(column),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5538,10 +5413,11 @@ class $$ClosedTabsTableAnnotationComposer
|
||||
GeneratedColumn<DateTime> get closedAt =>
|
||||
$composableBuilder(column: $table.closedAt, builder: (column) => column);
|
||||
|
||||
GeneratedColumn<String> get paymentMethod => $composableBuilder(
|
||||
column: $table.paymentMethod,
|
||||
builder: (column) => column,
|
||||
);
|
||||
GeneratedColumnWithTypeConverter<PaymentMethod, String> get paymentMethod =>
|
||||
$composableBuilder(
|
||||
column: $table.paymentMethod,
|
||||
builder: (column) => column,
|
||||
);
|
||||
}
|
||||
|
||||
class $$ClosedTabsTableTableManager
|
||||
@@ -5579,7 +5455,7 @@ class $$ClosedTabsTableTableManager
|
||||
Value<String> originalTabId = const Value.absent(),
|
||||
Value<String> customerName = const Value.absent(),
|
||||
Value<DateTime> closedAt = const Value.absent(),
|
||||
Value<String> paymentMethod = const Value.absent(),
|
||||
Value<PaymentMethod> paymentMethod = const Value.absent(),
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) => ClosedTabsCompanion(
|
||||
id: id,
|
||||
@@ -5595,7 +5471,7 @@ class $$ClosedTabsTableTableManager
|
||||
required String originalTabId,
|
||||
required String customerName,
|
||||
required DateTime closedAt,
|
||||
Value<String> paymentMethod = const Value.absent(),
|
||||
Value<PaymentMethod> paymentMethod = const Value.absent(),
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) => ClosedTabsCompanion.insert(
|
||||
id: id,
|
||||
@@ -6355,7 +6231,7 @@ typedef $$ProcessedRemoteCommandsTableCreateCompanionBuilder =
|
||||
required String commandId,
|
||||
required String commandType,
|
||||
required DateTime processedAt,
|
||||
required String result,
|
||||
required CommandResult result,
|
||||
Value<int> rowid,
|
||||
});
|
||||
typedef $$ProcessedRemoteCommandsTableUpdateCompanionBuilder =
|
||||
@@ -6363,7 +6239,7 @@ typedef $$ProcessedRemoteCommandsTableUpdateCompanionBuilder =
|
||||
Value<String> commandId,
|
||||
Value<String> commandType,
|
||||
Value<DateTime> processedAt,
|
||||
Value<String> result,
|
||||
Value<CommandResult> result,
|
||||
Value<int> rowid,
|
||||
});
|
||||
|
||||
@@ -6391,9 +6267,10 @@ class $$ProcessedRemoteCommandsTableFilterComposer
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
|
||||
ColumnFilters<String> get result => $composableBuilder(
|
||||
ColumnWithTypeConverterFilters<CommandResult, CommandResult, String>
|
||||
get result => $composableBuilder(
|
||||
column: $table.result,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
builder: (column) => ColumnWithTypeConverterFilters(column),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -6449,7 +6326,7 @@ class $$ProcessedRemoteCommandsTableAnnotationComposer
|
||||
builder: (column) => column,
|
||||
);
|
||||
|
||||
GeneratedColumn<String> get result =>
|
||||
GeneratedColumnWithTypeConverter<CommandResult, String> get result =>
|
||||
$composableBuilder(column: $table.result, builder: (column) => column);
|
||||
}
|
||||
|
||||
@@ -6502,7 +6379,7 @@ class $$ProcessedRemoteCommandsTableTableManager
|
||||
Value<String> commandId = const Value.absent(),
|
||||
Value<String> commandType = const Value.absent(),
|
||||
Value<DateTime> processedAt = const Value.absent(),
|
||||
Value<String> result = const Value.absent(),
|
||||
Value<CommandResult> result = const Value.absent(),
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) => ProcessedRemoteCommandsCompanion(
|
||||
commandId: commandId,
|
||||
@@ -6516,7 +6393,7 @@ class $$ProcessedRemoteCommandsTableTableManager
|
||||
required String commandId,
|
||||
required String commandType,
|
||||
required DateTime processedAt,
|
||||
required String result,
|
||||
required CommandResult result,
|
||||
Value<int> rowid = const Value.absent(),
|
||||
}) => ProcessedRemoteCommandsCompanion.insert(
|
||||
commandId: commandId,
|
||||
|
||||
Reference in New Issue
Block a user