use diesel::prelude::*;
use uuid::Uuid;

use crate::{models::Team, schema};

#[derive(Associations, Clone, Debug, Identifiable, Insertable, Queryable, Selectable)]
#[diesel(table_name = schema::projects)]
#[diesel(belongs_to(Team))]
pub struct Project {
    pub id: Uuid,
    pub team_id: Uuid,
    pub name: String,
}
