##// END OF EJS Templates
Added last change translation to 'time ago', added generation of enabled zip archives
Added last change translation to 'time ago', added generation of enabled zip archives

File last commit:

r49:3ada2f40 default
r56:bf1b6404 default
Show More
db.py
24 lines | 1.4 KiB | text/x-python | PythonLexer
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relation, backref
from sqlalchemy import ForeignKey, Column, Table, Sequence
from sqlalchemy.types import *
from sqlalchemy.databases.sqlite import *
from pylons_app.model.meta import Base
class Users(Base):
__tablename__ = 'users'
__table_args__ = {'useexisting':True}
user_id = Column("user_id", SLInteger(), nullable=False, unique=True, default=None, primary_key=1)
username = Column("username", SLText(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
password = Column("password", SLText(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
active = Column("active", SLInteger(), nullable=True, unique=None, default=None)
admin = Column("admin", SLInteger(), nullable=True, unique=None, default=None)
class UserLogs(Base):
__tablename__ = 'user_logs'
__table_args__ = {'useexisting':True}
id = Column("id", SLInteger(), nullable=False, unique=True, default=None, primary_key=1)
user_id = Column("user_id", SLInteger(), nullable=True, unique=None, default=None)
last_action = Column("last_action", SLText(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
last_action_date = Column("last_action_date", SLDateTime(timezone=False), nullable=True, unique=None, default=None)