* PostgreSQL array (draft) * Fixup * Fixup * Fixup * Fixup * Fixup * Refactoring * generate entity for Postgres array fields * Add tests * Update Cargo.toml Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
18 lines
475 B
Rust
18 lines
475 B
Rust
//! SeaORM Entity. Generated by sea-orm-codegen 0.10.0
|
|
|
|
use sea_orm::entity::prelude::*;
|
|
|
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
|
#[sea_orm(schema_name = "schema_name", table_name = "collection")]
|
|
pub struct Model {
|
|
#[sea_orm(primary_key)]
|
|
pub id: i32,
|
|
pub integers: Vec<i32> ,
|
|
pub integers_opt: Option<Vec<i32> > ,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
pub enum Relation {}
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|