定义病猪子服务
This commit is contained in:
@@ -163,12 +163,12 @@ func (ps *PostgresStorage) creatingHyperTable() error {
|
||||
{models.RawMaterialPurchase{}, "purchase_date"},
|
||||
{models.RawMaterialStockLog{}, "happened_at"},
|
||||
{models.FeedUsageRecord{}, "recorded_at"},
|
||||
{models.GroupMedicationLog{}, "happened_at"},
|
||||
{models.MedicationLog{}, "happened_at"},
|
||||
{models.PigBatchLog{}, "happened_at"},
|
||||
{models.WeighingBatch{}, "weighing_time"},
|
||||
{models.WeighingRecord{}, "weighing_time"},
|
||||
{models.PigTransferLog{}, "transfer_time"},
|
||||
{models.PigBatchSickPigLog{}, "happened_at"},
|
||||
{models.PigSickLog{}, "happened_at"},
|
||||
{models.PigPurchase{}, "purchase_date"},
|
||||
{models.PigSale{}, "sale_date"},
|
||||
}
|
||||
@@ -203,12 +203,12 @@ func (ps *PostgresStorage) applyCompressionPolicies() error {
|
||||
{models.RawMaterialPurchase{}, "raw_material_id"},
|
||||
{models.RawMaterialStockLog{}, "raw_material_id"},
|
||||
{models.FeedUsageRecord{}, "pen_id"},
|
||||
{models.GroupMedicationLog{}, "pig_batch_id"},
|
||||
{models.MedicationLog{}, "pig_batch_id"},
|
||||
{models.PigBatchLog{}, "pig_batch_id"},
|
||||
{models.WeighingBatch{}, "pig_batch_id"},
|
||||
{models.WeighingRecord{}, "weighing_batch_id"},
|
||||
{models.PigTransferLog{}, "pig_batch_id"},
|
||||
{models.PigBatchSickPigLog{}, "pig_batch_id"},
|
||||
{models.PigSickLog{}, "pig_batch_id"},
|
||||
{models.PigPurchase{}, "pig_batch_id"},
|
||||
{models.PigSale{}, "pig_batch_id"},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user