Skip to content

Commit efd7d90

Browse files
committed
fix: README
1 parent f152ea7 commit efd7d90

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ CREATE TABLE IF NOT EXISTS groups (
5757
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
5858
name TEXT NOT NULL UNIQUE, -- Group name
5959
reference_count INTEGER NOT NULL DEFAULT 0, -- Reference count
60-
is_primary BOOLEAN NOT NULL DEFAULT 0, -- Whether it's a primary group, 0 for no, 1 for yes
60+
is_primary BOOLEAN NOT NULL DEFAULT false, -- Whether it's a primary group, false for no, true for yes
6161
click_count INTEGER NOT NULL DEFAULT 0, -- Click count
6262
share_count INTEGER NOT NULL DEFAULT 0, -- Share count
63-
create_time BigInt NOT NULL, -- Creation time
64-
modify_time BigInt NOT NULL -- Modification time
63+
create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Creation time
64+
modify_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP -- Modification time
6565
);
6666

6767
CREATE TABLE IF NOT EXISTS file_groups (

README_cn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ CREATE TABLE IF NOT EXISTS groups (
5757
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
5858
name TEXT NOT NULL UNIQUE, -- 文件组名
5959
reference_count INTEGER NOT NULL DEFAULT 0, -- 引用计数
60-
is_primary BOOLEAN NOT NULL DEFAULT 0, -- 是否为本命文件组,0表示否,1表示是
60+
is_primary BOOLEAN NOT NULL DEFAULT false, -- 是否为本命文件组,false表示否,true表示是
6161
click_count INTEGER NOT NULL DEFAULT 0, -- 点击次数
6262
share_count INTEGER NOT NULL DEFAULT 0, -- 分享次数
63-
create_time BigInt NOT NULL, -- 创建时间
64-
modify_time BigInt NOT NULL -- 修改时间
63+
create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间
64+
modify_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP -- 修改时间
6565
);
6666

6767
CREATE TABLE IF NOT EXISTS file_groups (

file_classification_core/src/model/models.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ pub enum TagCondition {
266266
And(Vec<TagCondition>),
267267
Or(Vec<TagCondition>),
268268
Not(Box<TagCondition>),
269+
270+
// GroupId(i32),
269271
}
270272

271273
#[derive(Default)]

0 commit comments

Comments
 (0)