23 lines
859 B
Python
23 lines
859 B
Python
from django.db import models
|
|||
|
|
from uuid6 import uuid8
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
class wecom企微员工( models.Model ):
|
||
|
|
"""城市信息表"""
|
||
|
|
objects = models.Manager( ) #
|
||
|
|
wecom企微员工_id = models.UUIDField( primary_key=True, default=uuid8 )
|
||
|
|
# id_str = models.CharField(max_length=128, default=generator.generate_str)
|
||
|
|
wecom_userid = models.CharField( max_length=128, )
|
||
|
|
wecom_department = models.CharField( max_length=128, null=True, blank=True )
|
||
|
|
dateAndTime = models.DateTimeField( auto_now_add=True, db_comment="创建时间" ) # 数据创建时间
|
||
|
|
updateTime = models.DateTimeField( auto_now=True, db_comment="更新时间" ) # 更新时间(需要用 save() )
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
class Meta:
|
||
|
|
db_table = "wecom企微员工" # 给数据表自定义一个名称;默认的会是在 应用名+类名
|
||
|
|
app_label = "django_app"
|