use chrono::{DateTime, Utc};
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "stock_market")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
pub ticker: String,
pub market_name: String,
pub created_at: DateTime<Utc>,
pub stock_type: String,
pub ato_threshold: Option<i64>,
pub buy_threshold: Option<i64>,
pub atc_threshold: Option<i64>,
pub sell_threshold: Option<i64>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}