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