We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0d7a59 commit e83b77aCopy full SHA for e83b77a
piccolo/apps/playground/commands/run.py
@@ -12,6 +12,7 @@
12
Varchar,
13
ForeignKey,
14
Integer,
15
+ Interval,
16
Numeric,
17
Timestamp,
18
UUID,
@@ -40,6 +41,7 @@ class Concert(Table):
40
41
band_2 = ForeignKey(Band)
42
venue = ForeignKey(Venue)
43
starts = Timestamp()
44
+ duration = Interval()
45
46
47
class Ticket(Table):
@@ -91,6 +93,7 @@ def populate():
91
93
band_2=rustaceans.id,
92
94
venue=venue.id,
95
starts=datetime.datetime.now() + datetime.timedelta(days=7),
96
+ duration=datetime.timedelta(hours=2),
97
)
98
concert.save().run_sync()
99
piccolo/columns/__init__.py
@@ -4,6 +4,7 @@
4
Float,
5
6
7
8
9
PrimaryKey,
10
Real,
0 commit comments