gitdataai/libs/models/lib.rs
ZhenYi 14f6e1e500 feat(core): initialize project with access control and AI integration
- Add gitignore and prettier configuration files for project scaffolding
- Implement room access control service with project member verification
- Create user access key management with CRUD operations and activity logging
- Add accordion UI component for frontend expandable sections
- Implement room AI configuration with list, upsert, and delete operations
- Add AI event types for agent join/leave/status change tracking
- Create streaming AI processing services for mode and react patterns
- Build room AI service with model detection and idempotency handling
- Integrate chat service orchestration for AI message processing
- Add typing indicators and stream cancellation for AI interactions
- Implement mention parsing and context extraction for AI agents
2026-05-03 06:04:31 +08:00

39 lines
902 B
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 mod workspaces;
pub use chrono::Utc as UtcClock;
pub use workspaces::{Workspace, WorkspaceRole};
pub type WorkspaceId = Uuid;
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 Seq = i64;
pub type LabelId = i64;
pub type DateTimeUtc = chrono::DateTime<chrono::Utc>;