123456789101112131415161718192021 |
- from django.db import models
- class Company(models.Model):
- id = models.IntegerField(unique=True, primary_key=True, verbose_name='公司ID')
- name = models.CharField(max_length=128, verbose_name='公司名称')
- logo_url = models.CharField(max_length=128, verbose_name='公司标志链接')
- certificate_url = models.CharField(max_length=128, verbose_name='营业执照链接')
- creator_id = models.CharField(max_length=128, verbose_name='创建者ID')
- creator_name = models.CharField(max_length=128,verbose_name='创建者名称')
- create_time = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')
- update_time = models.DateTimeField(auto_now=True, verbose_name='修改时间')
- def __str__(self):
- return self.name
- class Meta:
- verbose_name = '被测试软件'
- verbose_name_plural = verbose_name
- db_table = 'company'
|