
from django.db import models
from django.db import models


# class UserInfo(models.Model):
#
#     # 如果没有models.AutoField，默认会创建一个id的自增列
#     username = models.CharField(max_length=30)
#     # email = models.EmailField()
#     password = models.CharField(max_length=30)
#
#     #表名
#     class Meta:
#         db_table='tb_user'
#         verbose_name='用户表'
#         verbose_name_plural=verbose_name

from django.db import models
from mongoengine import *

# Create your models here.

# 指明要连接的数据库
# connect('Comp',host = '127.0.0.1',port = 27017)
#
# class invitation(Document):
#     # 定义数据库中的所有字段
#     number = StringField()
#     title = StringField()
#     content = StringField()
#     url = StringField()
#
#     # 指明连接的数据表名
#     meta = {'collection':'invitation'}
#
