factory/apps/enm/models.py

11 lines
451 B
Python

from django.db import models
from apps.utils.models import CommonBDModel
# Create your models here.
class Mpoint(CommonBDModel):
"""测点
"""
equipment = models.ForeignKey('em.equipment', verbose_name='关联设备', on_delete=models.SET_NULL, null=True, blank=True)
name = models.CharField('测点名称', max_length=50)
code = models.CharField('测点编号', max_length=50)
unit = models.CharField('单位', max_length=50)