feat: add Models+Schema and User Controller

This commit is contained in:
2022-09-08 23:16:13 +02:00
parent 388cfbdc94
commit 990dd967dc
12 changed files with 236 additions and 64 deletions

9
Models/Tenant.py Normal file
View File

@@ -0,0 +1,9 @@
from app import db, ma
class Tenant(db.Model):
__tablename__ = "tenants"
tenant_id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(50))
def __repr__(self):
return '<Tenant %s>' % self.name