-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
355 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/// 心情详细内容表 | ||
class MoodInfo { | ||
const MoodInfo._(); | ||
|
||
/// 表名称 | ||
static const String tableName = 'mood_info'; | ||
|
||
/// 字段名 | ||
/// 心情ID | ||
static const String mood_id = 'mood_id'; | ||
|
||
/// 图标 | ||
static const String icon = 'icon'; | ||
|
||
/// 心情(标题) | ||
static const String title = 'title'; | ||
|
||
/// 心情程度分数 | ||
static const String score = 'score'; | ||
|
||
/// 心情内容 | ||
static const String content = 'content'; | ||
|
||
/// 创建时间 | ||
static const String create_time = 'create_time'; | ||
|
||
/// 修改时间 | ||
static const String update_time = 'update_time'; | ||
|
||
/// 删除数据库 | ||
static const String dropTable = 'DROP TABLE IF EXISTS $tableName'; | ||
|
||
/// 创建数据库 | ||
static const String createTable = ''' | ||
CREATE TABLE $tableName ( | ||
$mood_id INTEGER PRIMARY KEY, | ||
$icon TEXT NOT NULL, | ||
$title TEXT NOT NULL, | ||
$score INT NOT NULL, | ||
$content TEXT NULL, | ||
$create_time TEXT NOT NULL, | ||
$update_time TEXT NOT NULL | ||
); | ||
'''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/// 心情类别表 | ||
class MoodInfoCategory { | ||
const MoodInfoCategory._(); | ||
|
||
/// 表名称 | ||
static const String tableName = 'mood_info_category'; | ||
|
||
/// 字段名 | ||
/// 类别ID | ||
static const String category_id = 'category_id'; | ||
|
||
/// 类别图标 | ||
static const String icon = 'icon'; | ||
|
||
/// 类别名称标题 | ||
static const String title = 'title'; | ||
|
||
/// 删除数据库 | ||
static const String dropTable = 'DROP TABLE IF EXISTS $tableName'; | ||
|
||
/// 创建数据库 | ||
static const String createTable = ''' | ||
CREATE TABLE $tableName ( | ||
$category_id INTEGER PRIMARY KEY, | ||
$icon TEXT NOT NULL, | ||
$title TEXT NOT NULL | ||
); | ||
'''; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.