fix: change project struct
This commit is contained in:
1
model/__init__.py
Normal file
1
model/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .person import Person
|
||||
11
model/person.py
Normal file
11
model/person.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from base import db
|
||||
|
||||
|
||||
class Person(db.Model):
|
||||
__tablename__ = 'faker_person'
|
||||
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
|
||||
name = db.Column(db.String(10), nullable=False)
|
||||
sex = db.Column(db.SMALLINT, nullable=False)
|
||||
age = db.Column(db.Integer, nullable=False)
|
||||
address = db.Column(db.String(20), nullable=False)
|
||||
identification = db.Column(db.String(18), nullable=False)
|
||||
Reference in New Issue
Block a user