gitdataai/libs/models/lib.rs

46 lines
1.2 KiB
Rust

pub use sea_orm::entity::prelude::*;
pub mod agent_task;
pub mod agents;
pub mod ai;
pub mod issues;
pub mod projects;
pub mod pull_request;
pub mod repos;
pub mod rooms;
pub mod system;
pub mod users;
pub use chrono::Utc as UtcClock;
pub use agent_task::{AgentType, TaskStatus};
pub type AgentTaskId = i64;
pub type UserId = Uuid;
pub type ProjectId = Uuid;
pub type RepoId = Uuid;
pub type RepoUpStreamId = Uuid;
pub type IssueId = Uuid;
pub type PullRequestId = Uuid;
pub type ModelId = Uuid;
pub type ModelVersionId = Uuid;
pub type ModelProviderId = Uuid;
pub type RoomId = Uuid;
pub type RoomCategoryId = Uuid;
pub type MessageId = Uuid;
pub type RoomThreadId = Uuid;
pub type AiSessionId = Uuid;
pub type AiConversationId = Uuid;
pub type AiMessageId = Uuid;
pub type Seq = i64;
pub type LabelId = i64;
pub type DateTimeUtc = chrono::DateTime<chrono::Utc>;
/// Input for batch tag embedding — shared between git hooks and agent embed service.
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct TagEmbedInput {
pub repo_id: String,
pub repo_name: String,
pub project_id: String,
pub name: String,
pub description: Option<String>,
}