campaign and admin
This commit is contained in:
parent
031811dba1
commit
e7c0c5ca4d
14 changed files with 69 additions and 4 deletions
16
app/campaigns/models.py
Normal file
16
app/campaigns/models.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from app import db
|
||||
from flask import current_app
|
||||
from flask_login import current_user
|
||||
from sqlalchemy import TEXT, Column, Boolean, ForeignKey, TEXT, INTEGER, VARCHAR
|
||||
import jwt
|
||||
from datetime import datetime, timezone, timedelta
|
||||
|
||||
|
||||
|
||||
class Campaign(db.Model):
|
||||
__tablename__ = 'campaign'
|
||||
id = Column('id', INTEGER(), primary_key=True)
|
||||
title = Column('title', TEXT(), nullable=False)
|
||||
email = Column('email', TEXT(), nullable=False, unique=True)
|
||||
password = Column('password', TEXT(), nullable=False)
|
||||
user_type = Column('user_type', TEXT(), nullable=False)
|
||||
Loading…
Add table
Add a link
Reference in a new issue