买卖猪记录表

This commit is contained in:
2025-10-05 22:09:25 +08:00
parent 1652df1533
commit c76c976cc8
3 changed files with 49 additions and 0 deletions

View File

@@ -169,6 +169,8 @@ func (ps *PostgresStorage) creatingHyperTable() error {
{models.WeighingRecord{}, "weighing_time"},
{models.PigTransferLog{}, "transfer_time"},
{models.PigBatchSickPigLog{}, "happened_at"},
{models.PigPurchase{}, "purchase_date"},
{models.PigSale{}, "sale_date"},
}
for _, table := range tablesToConvert {
@@ -207,6 +209,8 @@ func (ps *PostgresStorage) applyCompressionPolicies() error {
{models.WeighingRecord{}, "weighing_batch_id"},
{models.PigTransferLog{}, "pig_batch_id"},
{models.PigBatchSickPigLog{}, "pig_batch_id"},
{models.PigPurchase{}, "pig_batch_id"},
{models.PigSale{}, "pig_batch_id"},
}
for _, policy := range policies {