接入百度统计部分数据,按天存储

This commit is contained in:
2024-01-15 11:23:59 +08:00
parent bf3f25972e
commit e2374676c3
11 changed files with 522 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
# == Schema Information
#
# Table name: daily_platform_statistics
#
# id :integer not null, primary key
# date :date
# pv :integer default("0")
# visitor :integer default("0")
# ip :integer default("0")
# weekly_keep_rate :float(24) default("0")
# source_through :float(24) default("0")
# source_link :float(24) default("0")
# source_search :float(24) default("0")
# source_custom :float(24) default("0")
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_daily_platform_statistics_on_date (date) UNIQUE
#
class DailyPlatformStatistic < ApplicationRecord
end