21 lines
568 B
Rust
21 lines
568 B
Rust
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
|
|
pub struct RepoRelease {
|
|
pub id: Uuid,
|
|
pub repo_id: Uuid,
|
|
pub tag_id: Option<Uuid>,
|
|
pub tag_name: String,
|
|
pub title: String,
|
|
pub body: Option<String>,
|
|
pub draft: bool,
|
|
pub prerelease: bool,
|
|
pub author_id: Uuid,
|
|
pub published_at: Option<DateTime<Utc>>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
pub deleted_at: Option<DateTime<Utc>>,
|
|
}
|