#!/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 = '化学品种类表'