parent
b1a10b3598
commit
39ae59dadb
4 changed files with 24 additions and 0 deletions
@ -1 +1,2 @@ |
||||
/.idea/* |
||||
/venv/ |
||||
|
@ -0,0 +1,18 @@ |
||||
from django.db import models |
||||
|
||||
|
||||
class BaseUserInfo(models.Model): |
||||
id = models.AutoField(verbose_name='编号', primary_key=True) |
||||
username = models.CharField(verbose_name='用户名', max_length=30) |
||||
password = models.CharField(verbose_name='密码', max_length=20) |
||||
status = models.CharField(verbose_name='状态', max_length=1) |
||||
createdate = models.DateField(verbose_name='创建日期', db_column='createDate') |
||||
|
||||
def __str__(self): |
||||
return self.id |
||||
|
||||
class Meta: |
||||
managed = False |
||||
verbose_name = '人员基本信息' |
||||
db_table = 'UserBaseInfo' |
||||
|
Loading…
Reference in new issue