2026-04-02 15:15:00 +07:00
|
|
|
use chrono::{DateTime, Utc};
|
2026-04-02 22:29:08 +07:00
|
|
|
use uuid::Uuid;
|
2026-04-02 15:15:00 +07:00
|
|
|
|
|
|
|
|
#[derive(Debug, Clone)]
|
|
|
|
|
pub struct SubmissionEntity {
|
2026-04-02 22:29:08 +07:00
|
|
|
pub id: Uuid,
|
|
|
|
|
pub team_id: Uuid,
|
|
|
|
|
pub project_name: String,
|
|
|
|
|
pub description: String,
|
|
|
|
|
pub repository_url: String,
|
|
|
|
|
pub demo_url: Option<String>,
|
|
|
|
|
pub presentation_url: Option<String>,
|
|
|
|
|
pub screenshots: Option<Vec<String>>,
|
|
|
|
|
pub status: String,
|
|
|
|
|
pub submitted_at: Option<DateTime<Utc>>,
|
|
|
|
|
pub submitted_by: Uuid,
|
|
|
|
|
pub created_at: Option<DateTime<Utc>>,
|
|
|
|
|
pub updated_at: Option<DateTime<Utc>>,
|
2026-04-02 15:15:00 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default)]
|
|
|
|
|
pub struct CreateSubmissionInput {
|
2026-04-02 22:29:08 +07:00
|
|
|
pub project_name: String,
|
|
|
|
|
pub description: String,
|
|
|
|
|
pub repository_url: String,
|
|
|
|
|
pub demo_url: Option<String>,
|
|
|
|
|
pub presentation_url: Option<String>,
|
|
|
|
|
pub screenshots: Option<Vec<String>>,
|
2026-04-02 15:15:00 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Default)]
|
|
|
|
|
pub struct UpdateSubmissionInput {
|
2026-04-02 22:29:08 +07:00
|
|
|
pub project_name: Option<String>,
|
|
|
|
|
pub description: Option<String>,
|
|
|
|
|
pub repository_url: Option<String>,
|
|
|
|
|
pub demo_url: Option<String>,
|
|
|
|
|
pub presentation_url: Option<String>,
|
|
|
|
|
pub screenshots: Option<Vec<String>>,
|
2026-04-02 15:15:00 +07:00
|
|
|
}
|