music_player_entity/
addon.rs1use sea_orm::entity::prelude::*;
2
3#[derive(Clone, Debug, Default, PartialEq, DeriveEntityModel)]
4#[sea_orm(table_name = "addon")]
5pub struct Model {
6 #[sea_orm(primary_key, auto_increment = false)]
7 pub id: String,
8 pub name: String,
9 pub description: String,
10 pub version: String,
11 pub author: String,
12 pub url: String,
13 pub enabled: bool,
14}
15
16#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
17pub enum Relation {}
18
19impl ActiveModelBehavior for ActiveModel {}