21 lines
537 B
Rust
21 lines
537 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 RepoReleaseModel {
|
|
pub id: Uuid,
|
|
pub repo: Uuid,
|
|
pub tag_name: String,
|
|
pub target_commit_sha: String,
|
|
pub name: String,
|
|
pub body: Option<String>,
|
|
pub draft: bool,
|
|
pub prerelease: bool,
|
|
pub author: Uuid,
|
|
pub published_at: Option<DateTime<Utc>>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|