25 lines
732 B
Rust
25 lines
732 B
Rust
//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.0
|
|
|
|
use sea_orm::entity::prelude::*;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
|
|
#[sea_orm(table_name = "projects")]
|
|
pub struct Model {
|
|
pub created_at: DateTimeWithTimeZone,
|
|
pub updated_at: DateTimeWithTimeZone,
|
|
#[sea_orm(primary_key)]
|
|
pub id: i32,
|
|
pub name: String,
|
|
pub technology: String,
|
|
pub short_description: String,
|
|
pub description: Option<String>,
|
|
pub category: String,
|
|
pub github_url: Option<String>,
|
|
pub download_url: Option<String>,
|
|
pub visit_url: Option<String>,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
pub enum Relation {}
|