diesel instead of sea-orm

sea-orm was getting to be bigger hassle I think and harder to compile,
diesel seems simple and effective enough.
This commit is contained in:
Chris Cochrun 2023-04-04 14:29:14 -05:00
parent d308bd33b2
commit 37a2dbd986
12 changed files with 165 additions and 1766 deletions

View file

View file

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

View file

@ -0,0 +1,5 @@
-- Your SQL goes here
CREATE TABLE IF NOT EXISTS 'songs' ( 'id' INTEGER NOT NULL, 'title' TEXT NOT NULL, 'lyrics' TEXT, 'author' TEXT, 'ccli' TEXT, 'audio' TEXT, 'vorder' TEXT, 'background' TEXT, 'backgroundType' TEXT, horizontalTextAlignment, verticalTextAlignment, font TEXT, fontSize INTEGER, PRIMARY KEY(id));
CREATE TABLE IF NOT EXISTS 'videos' ( 'id' INTEGER NOT NULL, 'title' TEXT NOT NULL, 'filePath' TEXT NOT NULL, startTime REAL, endTime REAL, loop BOOLEAN NOT NULL DEFAULT 0, PRIMARY KEY(id));
CREATE TABLE IF NOT EXISTS 'images' ( 'id' INTEGER NOT NULL, 'title' TEXT NOT NULL, 'filePath' TEXT NOT NULL, PRIMARY KEY(id));
CREATE TABLE IF NOT EXISTS 'presentations' ( 'id' INTEGER NOT NULL, 'title' TEXT NOT NULL, 'filePath' TEXT NOT NULL, pageCount INTEGER DEFAULT 1, PRIMARY KEY(id));