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.
22 lines
812 B
22 lines
812 B
# -*- coding: utf-8 -*-
|
|
# @Time : 2023/11/21 14:32
|
|
# @Author : tx
|
|
# @File : drug_relation_image.py
|
|
# @Description :
|
|
|
|
from tortoise import fields
|
|
from tortoise.models import Model
|
|
|
|
|
|
class DrugRelationImage(Model):
|
|
id = fields.UUIDField(pk=True)
|
|
drug = fields.ForeignKeyField('rms.Drug', null=True, to_field='id', description='药剂ID')
|
|
dictionary = fields.ForeignKeyField('rms.Dictionary', null=True, to_field='id')
|
|
pic_url = fields.CharField(max_length=200, null=True, description='图片路径')
|
|
created_at = fields.DatetimeField(auto_now_add=True)
|
|
updated_at = fields.DatetimeField(auto_now=True)
|
|
is_add = fields.IntField(default=0, description='是否添加 0否 1是')
|
|
|
|
class Meta:
|
|
table = 'drug_relation_image'
|
|
table_description = '药剂关联图片' |