1 Star 0 Fork 1.1K

智锋科技/GreaterWMS_2

forked from GreaterWMS/GreaterWMS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
models.py 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
Singosgu 提交于 2021-10-23 13:15 . V 2.0.26
from django.db import models
class ListModel(models.Model):
driver_name = models.CharField(max_length=255, verbose_name="Driver Name")
license_plate = models.CharField(max_length=255, verbose_name="License Plate")
contact = models.CharField(max_length=255, verbose_name="Contact Number")
creater = models.CharField(max_length=255, verbose_name="Who Created")
openid = models.CharField(max_length=255, verbose_name="Openid")
is_delete = models.BooleanField(default=False, verbose_name='Delete Label')
create_time = models.DateTimeField(auto_now_add=True, verbose_name="Create Time")
update_time = models.DateTimeField(auto_now=True, blank=True, null=True, verbose_name="Update Time")
class Meta:
db_table = 'driver'
verbose_name = 'data id'
verbose_name_plural = "data id"
ordering = ['driver_name']
def __str__(self):
return self.pk
class DispatchListModel(models.Model):
driver_name = models.CharField(max_length=255, verbose_name="Driver Name")
dn_code = models.CharField(max_length=255, verbose_name="DN Code")
contact = models.BigIntegerField(default=0, verbose_name="Contact Number")
creater = models.CharField(max_length=255, verbose_name="Who Created")
openid = models.CharField(max_length=255, verbose_name="Openid")
create_time = models.DateTimeField(auto_now_add=True, verbose_name="Create Time")
update_time = models.DateTimeField(auto_now=True, blank=True, null=True, verbose_name="Update Time")
class Meta:
db_table = 'dispatchlist'
verbose_name = 'data id'
verbose_name_plural = "data id"
ordering = ['-create_time']
def __str__(self):
return self.pk
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/elfbobo_admin/GreaterWMS_2.git
git@gitee.com:elfbobo_admin/GreaterWMS_2.git
elfbobo_admin
GreaterWMS_2
GreaterWMS_2
master

搜索帮助