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

55
src/rust/schema.rs Normal file
View file

@ -0,0 +1,55 @@
// @generated automatically by Diesel CLI.
diesel::table! {
images (id) {
id -> Integer,
title -> Text,
filePath -> Text,
}
}
diesel::table! {
presentations (id) {
id -> Integer,
title -> Text,
filePath -> Text,
pageCount -> Nullable<Integer>,
}
}
diesel::table! {
songs (id) {
id -> Integer,
title -> Text,
lyrics -> Nullable<Text>,
author -> Nullable<Text>,
ccli -> Nullable<Text>,
audio -> Nullable<Text>,
vorder -> Nullable<Text>,
background -> Nullable<Text>,
backgroundType -> Nullable<Text>,
horizontalTextAlignment -> Nullable<Binary>,
verticalTextAlignment -> Nullable<Binary>,
font -> Nullable<Text>,
fontSize -> Nullable<Integer>,
}
}
diesel::table! {
videos (id) {
id -> Integer,
title -> Text,
filePath -> Text,
startTime -> Nullable<Float>,
endTime -> Nullable<Float>,
#[sql_name = "loop"]
loop_ -> Bool,
}
}
diesel::allow_tables_to_appear_in_same_query!(
images,
presentations,
songs,
videos,
);