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:
parent
d308bd33b2
commit
37a2dbd986
12 changed files with 165 additions and 1766 deletions
55
src/rust/schema.rs
Normal file
55
src/rust/schema.rs
Normal 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,
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue