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,80 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'showroom_model.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class ShowroomModelAdapter extends TypeAdapter<ShowroomModel> {
@override
final typeId = 21;
@override
ShowroomModel read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return ShowroomModel(
showroomId: fields[0] as String,
title: fields[1] as String,
description: fields[2] as String,
coverImage: fields[3] as String?,
link360: fields[4] as String?,
area: (fields[5] as num).toDouble(),
style: fields[6] as String,
location: fields[7] as String,
galleryImages: fields[8] as String?,
viewCount: (fields[9] as num).toInt(),
isFeatured: fields[10] as bool,
isActive: fields[11] as bool,
publishedAt: fields[12] as DateTime?,
createdBy: fields[13] as String?,
);
}
@override
void write(BinaryWriter writer, ShowroomModel obj) {
writer
..writeByte(14)
..writeByte(0)
..write(obj.showroomId)
..writeByte(1)
..write(obj.title)
..writeByte(2)
..write(obj.description)
..writeByte(3)
..write(obj.coverImage)
..writeByte(4)
..write(obj.link360)
..writeByte(5)
..write(obj.area)
..writeByte(6)
..write(obj.style)
..writeByte(7)
..write(obj.location)
..writeByte(8)
..write(obj.galleryImages)
..writeByte(9)
..write(obj.viewCount)
..writeByte(10)
..write(obj.isFeatured)
..writeByte(11)
..write(obj.isActive)
..writeByte(12)
..write(obj.publishedAt)
..writeByte(13)
..write(obj.createdBy);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is ShowroomModelAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}