You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
607 B
Rust
28 lines
607 B
Rust
2 years ago
|
//! SeaORM Entity. Generated by sea-orm-codegen 0.7.0
|
||
|
|
||
|
use sea_orm::entity::prelude::*;
|
||
|
|
||
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
|
||
|
#[sea_orm(table_name = "youtube_songs")]
|
||
|
pub struct Model {
|
||
|
#[sea_orm(primary_key)]
|
||
|
pub id: i64,
|
||
|
pub spotify_id: String,
|
||
|
pub artist: String,
|
||
|
pub title: String,
|
||
|
pub album: String,
|
||
|
pub url: String,
|
||
|
pub score: i32,
|
||
|
}
|
||
|
|
||
|
#[derive(Copy, Clone, Debug, EnumIter)]
|
||
|
pub enum Relation {}
|
||
|
|
||
|
impl RelationTrait for Relation {
|
||
|
fn def(&self) -> RelationDef {
|
||
|
panic!("No RelationDef")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
impl ActiveModelBehavior for ActiveModel {}
|