parent
30ce318c8f
commit
a9bb902700
@ -1,3 +1,13 @@
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
# Create your models here.
|
# Create your models here.
|
||||||
|
|
||||||
|
|
||||||
|
class Admin(models.Model):
|
||||||
|
aid = models.AutoField(primary_key=True, name="aid")
|
||||||
|
username = models.CharField(unique=True, name="username", verbose_name="管理员账号")
|
||||||
|
password = models.CharField(name="password", verbose_name="管理员密码")
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
db_table = "admin"
|
||||||
|
verbose_name = "管理员"
|
||||||
|
Loading…
Reference in new issue