shindo_coding_utils 0.4.11

A utils crates which will be used in various micro-services
use chrono::{DateTime, Utc};
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "following_investor")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub id: i64,
    pub user_id: String,
    pub post_id: i64,
    pub content: String,
    pub post_type: String,
    pub tagged_symbols: String,
    pub post_timestamp: DateTime<Utc>,
    pub created_at: DateTime<Utc>,
    pub notification_sent: bool,
}

#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}

impl ActiveModelBehavior for ActiveModel {}