feat: init

This commit is contained in:
zhenyi
2026-06-07 11:30:56 +08:00
commit 563381c1ca
361 changed files with 41327 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use uuid::Uuid;
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
pub struct RepoStats {
pub repo_id: Uuid,
pub stars_count: i64,
pub watchers_count: i64,
pub forks_count: i64,
pub branches_count: i64,
pub tags_count: i64,
pub commits_count: i64,
pub releases_count: i64,
pub open_issues_count: i64,
pub open_pull_requests_count: i64,
pub size_bytes: i64,
pub last_push_at: Option<DateTime<Utc>>,
pub updated_at: DateTime<Utc>,
}