Removed models module
This commit is contained in:
parent
e7ef07fe6a
commit
48f2913816
4 changed files with 10 additions and 13 deletions
|
@ -8,6 +8,14 @@ use errors::*;
|
||||||
use vfs::MountPoint;
|
use vfs::MountPoint;
|
||||||
use ddns::DDNSConfig;
|
use ddns::DDNSConfig;
|
||||||
|
|
||||||
|
#[derive(Debug, Queryable)]
|
||||||
|
pub struct MiscSettings {
|
||||||
|
id: i32,
|
||||||
|
pub auth_secret: String,
|
||||||
|
pub index_sleep_duration_seconds: i32,
|
||||||
|
pub index_album_art_pattern: String,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
pub struct User {
|
pub struct User {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
|
|
@ -9,9 +9,8 @@ use std::sync::Mutex;
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use std::time;
|
use std::time;
|
||||||
|
|
||||||
use config::UserConfig;
|
use config::{MiscSettings, UserConfig};
|
||||||
use db::DB;
|
use db::DB;
|
||||||
use db::models::MiscSettings;
|
|
||||||
use db::schema::*;
|
use db::schema::*;
|
||||||
use errors::*;
|
use errors::*;
|
||||||
use metadata;
|
use metadata;
|
||||||
|
|
|
@ -8,19 +8,17 @@ use std::fs;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
||||||
use config::UserConfig;
|
use config::{MiscSettings, UserConfig};
|
||||||
use ddns::{DDNSConfigSource, DDNSConfig};
|
use ddns::{DDNSConfigSource, DDNSConfig};
|
||||||
use errors::*;
|
use errors::*;
|
||||||
use user::*;
|
use user::*;
|
||||||
use vfs::{MountPoint, Vfs};
|
use vfs::{MountPoint, Vfs};
|
||||||
|
|
||||||
mod index;
|
mod index;
|
||||||
mod models;
|
|
||||||
mod schema;
|
mod schema;
|
||||||
|
|
||||||
use self::index::{CollectionFile, Directory, Song};
|
use self::index::{CollectionFile, Directory, Song};
|
||||||
pub use self::schema::*;
|
pub use self::schema::*;
|
||||||
pub use self::models::*;
|
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
const DB_MIGRATIONS_PATH: &'static str = "src/db/migrations";
|
const DB_MIGRATIONS_PATH: &'static str = "src/db/migrations";
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
// Misc Settings
|
|
||||||
#[derive(Debug, Queryable)]
|
|
||||||
pub struct MiscSettings {
|
|
||||||
id: i32,
|
|
||||||
pub auth_secret: String,
|
|
||||||
pub index_sleep_duration_seconds: i32,
|
|
||||||
pub index_album_art_pattern: String,
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue