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