Merge remote-tracking branch 'origin/dev' into cody/netwrok_SDK
# Conflicts: # apps/im_app/lib/features/chat/presentation/chat_db_test_view_model.dart # apps/im_app/lib/features/login/presentation/login_view_model.dart 修复逻辑漏洞,性能优化
This commit is contained in:
20
apps/im_app/lib/data/local/drift/tables/sounds.dart
Normal file
20
apps/im_app/lib/data/local/drift/tables/sounds.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:drift/drift.dart';
|
||||
|
||||
@DataClassName('DriftSound')
|
||||
class Sounds extends Table {
|
||||
IntColumn get id => integer()();
|
||||
TextColumn get filePath => text().withDefault(const Constant(''))();
|
||||
IntColumn get typ => integer()();
|
||||
TextColumn get name => text().withDefault(const Constant(''))();
|
||||
IntColumn get createdAt => integer()();
|
||||
IntColumn get updatedAt => integer()();
|
||||
IntColumn get deletedAt => integer().withDefault(const Constant(0))();
|
||||
IntColumn get channelGroupId => integer()();
|
||||
IntColumn get isDefault => integer()();
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
|
||||
@override
|
||||
String get tableName => 'sound';
|
||||
}
|
||||
Reference in New Issue
Block a user