2024-03-22 02:29:37 +01:00
|
|
|
use sea_orm::entity::prelude::*;
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
|
|
|
#[sea_orm(table_name = "relations")]
|
|
|
|
pub struct Model {
|
|
|
|
#[sea_orm(primary_key)]
|
|
|
|
pub id: i64,
|
|
|
|
pub follower: String,
|
|
|
|
pub following: String,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
|
|
pub enum Relation {}
|
2024-04-06 16:56:13 +02:00
|
|
|
// TODO how to represent this User-to-User relation in sea orm??
|
2024-03-22 02:29:37 +01:00
|
|
|
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|