-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from inblockio/db_fixes
Db fixes
- Loading branch information
Showing
13 changed files
with
100 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-- Your SQL goes here | ||
CREATE TABLE IF NOT EXISTS share_data ( | ||
id INTEGER PRIMARY KEY AUTOINCREMENT, | ||
file_name TEXT NOT NULL, | ||
file_id INTEGER NOT NULL, | ||
identifier TEXT NOT NULL, | ||
created_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
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 |
---|---|---|
@@ -1,21 +1,20 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::db::pages_db::db_data; | ||
|
||
use super::{file::FileInfo, ShareDataTable}; | ||
use super::{file::FileInfo, PagesDataTable, ShareDataTable}; | ||
|
||
#[derive(Debug, Serialize, Deserialize, Clone)] | ||
pub struct ShareDataResponse{ | ||
|
||
pub logs : Vec<String>, | ||
pub share_data : Option<ShareDataTable>, | ||
pub file_data : Option<db_data>, | ||
pub file_data : Option<PagesDataTable>, | ||
|
||
} | ||
|
||
#[derive(Deserialize, Serialize, Debug, Clone)] | ||
#[allow(dead_code)] | ||
pub struct CreateShareData { | ||
pub filename: String, | ||
pub file_id : i32, | ||
pub identifier : String | ||
} |
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
Oops, something went wrong.