Subversion Repositories SmartDukaan

Rev

Rev 14039 | Rev 14769 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14039 Rev 14040
Line 1... Line 1...
1
from elixir import metadata, setup_all
1
from elixir import metadata, setup_all
2
from elixir.entity import Entity
2
from elixir.entity import Entity
3
from elixir.fields import Field
3
from elixir.fields import Field
4
from elixir.options import using_options, using_table_options
4
from elixir.options import using_options, using_table_options
5
from elixir.relationships import OneToMany, ManyToOne
-
 
6
from sqlalchemy import create_engine, UniqueConstraint, Index
5
from sqlalchemy import create_engine
7
from sqlalchemy.types import Integer, String, DateTime, Float, Boolean, Text, Enum, BigInteger, Date
6
from sqlalchemy.types import Integer, String, DateTime, Float, Boolean, Enum
8
import datetime
-
 
9
import elixir
-
 
10
 
7
 
11
 
8
 
12
class Users(Entity):
9
class Users(Entity):
13
    id = Field(Integer(unsigned=True), primary_key=True)
10
    id = Field(Integer(unsigned=True), primary_key=True)
14
    username = Field(String(128))
11
    username = Field(String(128))