You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
24 lines
1.0 KiB
from django.db import models |
|
from common.base_model import BaseModels |
|
|
|
|
|
class Cinema(BaseModels): |
|
""" |
|
影院信息表 |
|
""" |
|
id = models.AutoField(primary_key=True) |
|
name = models.CharField(verbose_name='影院名称', max_length=100, null=False) |
|
ip = models.CharField(verbose_name='影院ip', max_length=20, null=False) |
|
zz_num = models.CharField(verbose_name='影院转账8位编码', max_length=8, null=False) |
|
inner_id = models.CharField(verbose_name="影院4位编码", max_length=4, null=False) |
|
db_user = models.CharField(verbose_name='影院数据库账号', max_length=20, null=False) |
|
db_pwd = models.CharField(verbose_name='影院数据库密码', max_length=50, null=False) |
|
sys_ver = models.CharField(verbose_name='鼎新系统版本', max_length=50, null=False) |
|
client_ver = models.CharField(verbose_name='鼎新客户端版本', max_length=50, null=False) |
|
|
|
def __str__(self): |
|
return self.ip |
|
|
|
class Meta: |
|
verbose_name = '影院信息' |
|
db_table = 'update_cinema'
|
|
|