Use ORM for applicants
This commit is contained in:
8
lib/domain/BaseModel.py
Normal file
8
lib/domain/BaseModel.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from peewee import Model, MySQLDatabase
|
||||
|
||||
database = MySQLDatabase(None)
|
||||
|
||||
|
||||
class BaseModel(Model):
|
||||
class Meta:
|
||||
database = database
|
||||
Reference in New Issue
Block a user