1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use async_graphql::SimpleObject;
use chrono::{DateTime, Utc};

use poem_openapi::Object;

use uuid::Uuid;

#[derive(Debug, SimpleObject, Object, Clone)]
pub struct Label {
    pub id: Uuid,
    pub created_at: DateTime<Utc>,
    pub updated_at: DateTime<Utc>,

    pub name: String,
    pub description: Option<String>,
    pub color: Option<String>,
}