예제 #1
0
class UserWorkspace(db.Model):
    user_id = db.Column(db.Integer,
                        db.ForeignKey('user.public_id'),
                        primary_key=True)
    workspace_id = db.Column(db.Integer,
                             db.ForeignKey('workspace.id'),
                             primary_key=True)
예제 #2
0
class Message(db.Model):
    mid = db.Column(db.Integer, primary_key=True)
    #dt = db.Column(db.String(50),unique=True)
    sender = db.Column(db.Integer, db.ForeignKey('user.id'))
    time_sent = db.Column(db.DateTime, nullable=False)
    message = db.Column(db.String(80))
    reciever = db.Column(db.Integer, db.ForeignKey('user.id'))
예제 #3
0
class UserChannel(db.Model):
    user_id = db.Column(db.Integer,
                        db.ForeignKey('user.public_id'),
                        primary_key=True)
    channel_id = db.Column(db.Integer,
                           db.ForeignKey('channel.id'),
                           primary_key=True)
예제 #4
0
class Task(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(50), nullable=False)
    description = db.Column(db.String(1000), nullable=False)

    #assignee = db.Column(db.Srting(50))
    assignee = db.Column(db.Integer, db.ForeignKey('user.public_id'))
    progress = db.Column(db.String(50))

    creation_date = db.Column(db.DateTime, nullable=False)
    due_date = db.Column(db.String(10), nullable=False)
    creator = db.Column(db.Integer, db.ForeignKey('user.id'))
예제 #5
0
class UserTasks(db.Model):
    user_id = db.Column(db.Integer,
                        db.ForeignKey('user.public_id'),
                        primary_key=True)
    task_id = db.Column(db.Integer, db.ForeignKey('task.id'), primary_key=True)
예제 #6
0
class Updates(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    user = db.Column(db.Integer, db.ForeignKey('user.public_id'))
    task = db.Column(db.Integer, db.ForeignKey('task.id'))
예제 #7
0
class Workspace(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(50), nullable=False)
    creation_date = db.Column(db.DateTime, nullable=False)
    description = db.Column(db.String(1000), nullable=False)
    creator = db.Column(db.Integer, db.ForeignKey('user.id'))
예제 #8
0
class Channel(db.Model):  #download sqliteman to view databases you create here
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(50), nullable=False)
    creation_date = db.Column(db.DateTime, nullable=False)
    description = db.Column(db.String(1000), nullable=False)
    creator = db.Column(db.Integer, db.ForeignKey('user.id'))