修改表命名
This commit is contained in:
@@ -4,7 +4,7 @@ from common.model import BaseModel, Column, Integer, String, DateTime
|
||||
|
||||
|
||||
class DictType(BaseModel):
|
||||
__tablename__ = 'admin_dict_type'
|
||||
__tablename__ = 'sys_dict_type'
|
||||
id = Column(Integer, primary_key=True)
|
||||
type_name = Column(String(255), comment='字典类型名称')
|
||||
type_code = Column(String(255), comment='字典类型标识')
|
||||
@@ -15,7 +15,7 @@ class DictType(BaseModel):
|
||||
|
||||
|
||||
class DictData(BaseModel):
|
||||
__tablename__ = 'admin_dict_data'
|
||||
__tablename__ = 'sys_dict_data'
|
||||
id = Column(Integer, primary_key=True)
|
||||
data_label = Column(String(255), comment='字典类型名称')
|
||||
data_value = Column(String(255), comment='字典类型标识')
|
||||
@@ -24,4 +24,4 @@ class DictData(BaseModel):
|
||||
enable = Column(Integer, comment='是否开启')
|
||||
remark = Column(String(255), comment='备注')
|
||||
create_time = Column(DateTime, default=datetime.datetime.now, comment='创建时间')
|
||||
update_time = Column(DateTime, default=datetime.datetime.now, onupdate=datetime.datetime.now, comment='更新时间')
|
||||
update_time = Column(DateTime, default=datetime.datetime.now, onupdate=datetime.datetime.now, comment='更新时间')
|
||||
|
||||
Reference in New Issue
Block a user