device_info_table.dart 800 B

123456789101112131415161718192021222324252627
  1. import 'package:drift/drift.dart';
  2. @DataClassName('DeviceInfo')
  3. class DeviceInfoTable extends Table {
  4. /// 登录用户名
  5. TextColumn get username => text()();
  6. /// 登录手机品牌,如Redmi
  7. TextColumn get phoneBrand => text()();
  8. /// 登录手机认证型号,如22120RN86C
  9. TextColumn get phoneModel=> text()();
  10. /// 登录手机版本,如14
  11. TextColumn get phoneRelease => text()();
  12. /// 登录手机所在地址,如"北京市西城区月坛北街18号靠近物资大院"
  13. TextColumn get phoneAddress => text()();
  14. /// 登录蓝牙mac地址
  15. TextColumn get bleMac => text()();
  16. /// 登录蓝牙名称
  17. TextColumn get bleName => text()();
  18. /// 日期
  19. IntColumn get createdAt => integer()();
  20. @override
  21. Set<Column<Object>>? get primaryKey => {bleMac, username};
  22. }