flush db v1

This commit is contained in:
leo
2024-03-06 20:30:27 +08:00
parent 08ef3f36a7
commit 31a2a947b4
8 changed files with 168 additions and 48 deletions

26
bak/init_data.py Normal file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
from pydantic import BaseModel
class BatchDataBase(BaseModel):
year: int | None = None
census_batch: str | None = None # 普查批次
id_code: str | None = None # 编号
precision: str | None = None # 精度
is_train: bool | None = None
is_validation: bool | None = None
ann_file: str | None = None
img_prefix: str | None = None
filter_empty_gt: bool | None = None
update_cache: bool | None = None
class BatchDataRead(BatchDataBase):
id: int
class Config:
orm_mode = True