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.

19 lines
712 B

#!/usr/bin/env python
# encoding: utf-8
from tortoise import fields, models
class ChemicalCategory(models.Model):
category_id = fields.IntField(pk=True, description='化学品种类序号')
storage_id = fields.IntField(description='配存序号')
category_name = fields.CharField(max_length=255, description='种类名称')
parent_category = fields.CharField(max_length=255, description='父级种类')
grandparent_category = fields.CharField(max_length=255, description='祖父级种类')
remark = fields.CharField(max_length=255, description='备注') # 已用作大类别标识
class Meta:
table = 'chemical_category'
table_description = '化学品种类表'