update database

This commit is contained in:
Phuoc Nguyen
2025-10-24 11:31:48 +07:00
parent f95fa9d0a6
commit c4272f9a21
126 changed files with 23528 additions and 2234 deletions

View File

@@ -0,0 +1,56 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'cart_model.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class CartModelAdapter extends TypeAdapter<CartModel> {
@override
final typeId = 4;
@override
CartModel read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return CartModel(
cartId: fields[0] as String,
userId: fields[1] as String,
totalAmount: (fields[2] as num).toDouble(),
isSynced: fields[3] as bool,
lastModified: fields[4] as DateTime,
createdAt: fields[5] as DateTime,
);
}
@override
void write(BinaryWriter writer, CartModel obj) {
writer
..writeByte(6)
..writeByte(0)
..write(obj.cartId)
..writeByte(1)
..write(obj.userId)
..writeByte(2)
..write(obj.totalAmount)
..writeByte(3)
..write(obj.isSynced)
..writeByte(4)
..write(obj.lastModified)
..writeByte(5)
..write(obj.createdAt);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is CartModelAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}