File size: 482 Bytes
71e71e8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from peewee import *

from src.model.BaseModel import BaseModel
from src.model.SystemUpdate import SystemUpdate
from src.model.User import User


class SystemUpdateUser(BaseModel):
    """
    SystemUpdateUser class
    """

    system_update = ForeignKeyField(SystemUpdate, backref="system_update")
    user = ForeignKeyField(User, backref="system_update")
    error = CharField(null=True)

    class Meta:
        db_table = "system_update_user"


SystemUpdateUser.create_table()