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.

26 lines
862 B

#!/usr/bin/env python
# encoding: utf-8
'''
@author: tx
@file: board.py
@time: 2023/5/9 9:48
@desc:
'''
from tortoise import fields, models
class Board(models.Model):
id = fields.UUIDField(pk = True)
name = fields.CharField(max_length = 255, description = '名称')
holable = fields.SmallIntField(description = '是否精准定位')
standard = fields.SmallIntField(description = '标准孔位')
matrix = fields.CharField(max_length = 50, null = True, description = '分布矩阵')
chip_dict = fields.JSONField(null = True, description = '芯片字典')
reserved = fields.BooleanField(default = 0, description = '是否预置')
created_at = fields.DatetimeField(auto_now_add = True)
updated_at = fields.DatetimeField(auto_now = True)
class Meta:
table = 'boards'
table_description = '定位板规格表'