add: journals/notes database interfaces
This commit is contained in:
parent
0f48a46c40
commit
102ea0ee35
14 changed files with 386 additions and 6 deletions
|
@ -23,3 +23,5 @@ pub const CREATE_TABLE_POLLS: &str = include_str!("./sql/create_polls.sql");
|
|||
pub const CREATE_TABLE_POLLVOTES: &str = include_str!("./sql/create_pollvotes.sql");
|
||||
pub const CREATE_TABLE_APPS: &str = include_str!("./sql/create_apps.sql");
|
||||
pub const CREATE_TABLE_STACKBLOCKS: &str = include_str!("./sql/create_stackblocks.sql");
|
||||
pub const CREATE_TABLE_JOURNALS: &str = include_str!("./sql/create_journals.sql");
|
||||
pub const CREATE_TABLE_NOTES: &str = include_str!("./sql/create_notes.sql");
|
||||
|
|
7
crates/core/src/database/drivers/sql/create_journals.sql
Normal file
7
crates/core/src/database/drivers/sql/create_journals.sql
Normal file
|
@ -0,0 +1,7 @@
|
|||
CREATE TABLE IF NOT EXISTS channels (
|
||||
id BIGINT NOT NULL PRIMARY KEY,
|
||||
created BIGINT NOT NULL,
|
||||
owner BIGINT NOT NULL,
|
||||
title TEXT NOT NULL,
|
||||
view TEXT NOT NULL
|
||||
)
|
9
crates/core/src/database/drivers/sql/create_notes.sql
Normal file
9
crates/core/src/database/drivers/sql/create_notes.sql
Normal file
|
@ -0,0 +1,9 @@
|
|||
CREATE TABLE IF NOT EXISTS channels (
|
||||
id BIGINT NOT NULL PRIMARY KEY,
|
||||
created BIGINT NOT NULL,
|
||||
owner BIGINT NOT NULL,
|
||||
title TEXT NOT NULL,
|
||||
journal BIGINT NOT NULL,
|
||||
content TEXT NOT NULL,
|
||||
edited BIGINT NOT NULL
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue