initial commit
This commit is contained in:
1
database/models/__init__.py
Normal file
1
database/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .basic import User
|
||||
BIN
database/models/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
database/models/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
database/models/__pycache__/basic.cpython-311.pyc
Normal file
BIN
database/models/__pycache__/basic.cpython-311.pyc
Normal file
Binary file not shown.
10
database/models/basic.py
Normal file
10
database/models/basic.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from sqlalchemy import Column, Integer, String
|
||||
|
||||
from ..base import BaseModel
|
||||
|
||||
|
||||
class User(BaseModel):
|
||||
__tablename__ = 'users'
|
||||
id = Column(Integer, autoincrement=True, primary_key=True, index=True)
|
||||
login = Column(String, unique=True)
|
||||
password = Column(String, unique=True)
|
||||
Reference in New Issue
Block a user