You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
561 B

from tortoise import fields, models
class Product(models.Model):
id = fields.UUIDField(pk = True)
name = fields.CharField(null = True, max_length = 255, description = '终端名称')
door = fields.BooleanField(default = False, description = '是否有柜门')
pack = fields.BooleanField(default = False, description = '是否全柜上报')
created_at = fields.DatetimeField(auto_now_add = True)
updated_at = fields.DatetimeField(auto_now = True)
class Meta:
table = 'products'
table_description = '产品系列表'