* Support Vector of enum for Postgres * Fix clippy * Add tests for integer array * Fix dependency * Bump sea-query to 0.27.2 Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
21 lines
551 B
Rust
21 lines
551 B
Rust
use super::sea_orm_active_enums::*;
|
|
use sea_orm::entity::prelude::*;
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
|
|
#[sea_orm(table_name = "collection")]
|
|
pub struct Model {
|
|
#[sea_orm(primary_key)]
|
|
pub id: i32,
|
|
pub integers: Vec<i32>,
|
|
pub integers_opt: Option<Vec<i32>>,
|
|
pub teas: Vec<Tea>,
|
|
pub teas_opt: Option<Vec<Tea>>,
|
|
pub colors: Vec<Color>,
|
|
pub colors_opt: Option<Vec<Color>>,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
pub enum Relation {}
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|