feat(db): add diesel and sqlite3 as dependencies

This commit is contained in:
2021-03-01 21:30:37 -06:00
parent e4dfea45c5
commit 32b7632258
12 changed files with 79 additions and 1 deletions

0
migrations/.gitkeep Normal file
View File

View File

@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE game_file

View File

@@ -0,0 +1,8 @@
-- Your SQL goes here
CREATE TABLE game_file (
id INTEGER PRIMARY KEY,
original_path BLOB NOT NULL, -- TEXT assumes a Unicode Encoding
file_hash INTEGER NOT NULL, -- u64, but that's not
game_save_id INTEGER NOT NULL,
FOREIGN KEY (game_save_id) REFERENCES game_save_location (id)
)

View File

@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE game_save_location

View File

@@ -0,0 +1,7 @@
-- Your SQL goes here
CREATE TABLE game_save_location (
id INTEGER PRIMARY KEY,
friendly_name TEXT -- This can be null
original_PATH BLOB NOT NULL,
uuid BLOB NOT NULL
)