mirror of
https://github.com/sigmasternchen/Diary
synced 2025-03-15 15:18:57 +00:00
14 lines
383 B
Python
Executable file
14 lines
383 B
Python
Executable file
#!/usr/bin/env python2.7
|
|
|
|
from sqlalchemy import Column,Integer,String
|
|
from database import Base
|
|
|
|
class User(Base):
|
|
__tablename__='users'
|
|
id=Column(Integer(),primary_key=True,unique=True)
|
|
username=Column(String(256),unique=True)
|
|
password=Column(String(128))
|
|
|
|
def __init__(self,username,password):
|
|
self.username=username
|
|
self.password=password
|