23 lines
604 B
Rust
23 lines
604 B
Rust
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use sqlx::FromRow;
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
|
|
pub struct IssueModel {
|
|
pub id: Uuid,
|
|
pub wk: Uuid,
|
|
pub number: i64,
|
|
pub title: String,
|
|
pub body: Option<String>,
|
|
pub state: String,
|
|
pub priority: String,
|
|
pub author: Uuid,
|
|
pub closed_by: Option<Uuid>,
|
|
pub closed_at: Option<DateTime<Utc>>,
|
|
pub due_at: Option<DateTime<Utc>>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
pub deleted_at: Option<DateTime<Utc>>,
|
|
}
|