更改:项目排行榜使用数据存储以及数据导出的功能

This commit is contained in:
2023-12-19 14:57:54 +08:00
parent 016a2f8cf5
commit 21f559f254
9 changed files with 153 additions and 86 deletions

View File

@@ -0,0 +1,28 @@
# == Schema Information
#
# Table name: daily_project_statistics
#
# id :integer not null, primary key
# project_id :integer
# date :string(255)
# visits :integer default("0")
# watchers :integer default("0")
# praises :integer default("0")
# forks :integer default("0")
# issues :integer default("0")
# pullrequests :integer default("0")
# commits :integer default("0")
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_daily_project_statistics_on_date (date)
# index_daily_project_statistics_on_project_id (project_id)
#
class DailyProjectStatistic < ApplicationRecord
belongs_to :project
end