Import and update the file service application and orizentic #72
|
@ -743,6 +743,7 @@ dependencies = [
|
|||
name = "file-service"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"base64ct",
|
||||
"build_html",
|
||||
"bytes",
|
||||
"chrono",
|
||||
|
|
|
@ -27,6 +27,7 @@ thiserror = "1.0.20"
|
|||
tokio = { version = "1", features = [ "full" ] }
|
||||
uuid = { version = "0.4", features = [ "serde", "v4" ] }
|
||||
warp = { version = "0.3" }
|
||||
base64ct = { version = "1", features = [ "alloc" ] }
|
||||
|
||||
[dev-dependencies]
|
||||
cool_asserts = { version = "2" }
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
-- Add migration script here
|
||||
CREATE TABLE IF NOT EXISTS users (
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
username TEXT NOT NULL,
|
||||
token TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS session_tokens (
|
||||
token TEXT NOT NULL,
|
||||
user INTEGER,
|
||||
FOREIGN KEY(user) REFERENCES user(id)
|
||||
);
|
Loading…
Reference in New Issue