Exemplo n.º 1
0
 class Band(Table):
     manager = ForeignKey("..example_app.tables.Manager", null=True)
Exemplo n.º 2
0
class Band1(Table):
    manager = ForeignKey(references=Manager)
Exemplo n.º 3
0
Arquivo: run.py Projeto: zkan/piccolo
class Concert(Table):
    band_1 = ForeignKey(Band)
    band_2 = ForeignKey(Band)
    venue = ForeignKey(Venue)
    starts = Timestamp()
    duration = Interval()
Exemplo n.º 4
0
Arquivo: run.py Projeto: zkan/piccolo
class Ticket(Table):
    concert = ForeignKey(Concert)
    price = Numeric(digits=(5, 2))
Exemplo n.º 5
0
class Role(Table):
    movie = ForeignKey(Movie)
    name = Varchar(length=100)
Exemplo n.º 6
0
Arquivo: run.py Projeto: zkan/piccolo
class Band(Table):
    name = Varchar(length=50)
    manager = ForeignKey(references=Manager, null=True)
    popularity = Integer()
Exemplo n.º 7
0
class BandD(Table):
    manager = ForeignKey(references=f"{__name__}.Manager")
Exemplo n.º 8
0
 class BandRelative(Table, tablename="band"):
     manager = ForeignKey("..example_app.tables.Manager", null=True)
Exemplo n.º 9
0
class Concert(Table):
    band_1 = ForeignKey(Band)
    band_2 = ForeignKey(Band)
    venue = ForeignKey(Venue)
Exemplo n.º 10
0
class BandC(Table):
    manager = ForeignKey(references=LazyTableReference(
        table_class_name="Manager", module_path=__name__))
Exemplo n.º 11
0
class Band(Table):
    name = Varchar(length=50)
    manager = ForeignKey(Manager, null=True)
    popularity = Integer(default=0)
Exemplo n.º 12
0
class BandA(Table):
    name = Varchar()
    manager = ForeignKey(ManagerA, target_column=ManagerA.name)
Exemplo n.º 13
0
class Band(Table):
    name = Varchar()
    manager = ForeignKey(Manager, target_column="name")
Exemplo n.º 14
0
class Band2(Table):
    manager = ForeignKey(references="Manager")
Exemplo n.º 15
0
class Manager(Table):
    name = Varchar()
    manager = ForeignKey("self")
Exemplo n.º 16
0
class Band4(Table):
    manager = ForeignKey(references="tests.columns.test_foreignkey.Manager")
Exemplo n.º 17
0
class BandC(Table, tablename="band"):
    manager = ForeignKey(references=f"{__name__}.Manager")