-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathschema.postgres.hcl
112 lines (104 loc) · 1.65 KB
/
schema.postgres.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
schema "public" {
comment = "standard public schema"
}
table "magnet_cache" {
schema = schema.public
column "store" {
null = false
type = varchar
}
column "hash" {
null = false
type = varchar
}
column "is_cached" {
null = false
type = bool
default = false
}
column "modified_at" {
null = false
type = timestamptz
default = sql("current_timestamp")
}
column "files" {
null = false
type = json
default = "[]"
}
primary_key {
columns = [column.store, column.hash]
}
}
table "magnet_cache_file" {
schema = schema.public
column "h" {
null = false
type = varchar
}
column "n" {
null = false
type = varchar
}
column "i" {
null = false
type = int
default = -1
}
column "s" {
null = false
type = bigint
default = -1
}
column "sid" {
null = false
type = varchar
default = ""
}
primary_key {
columns = [column.h, column.n]
}
}
table "peer_token" {
schema = schema.public
column "id" {
null = false
type = varchar
}
column "name" {
null = false
type = varchar
}
column "created_at" {
null = false
type = timestamptz
default = sql("current_timestamp")
}
primary_key {
columns = [column.id]
}
}
table "kv" {
schema = schema.public
column "k" {
null = false
type = text
}
column "v" {
null = false
type = text
}
column "cat" {
null = false
type = timestamptz
default = sql("current_timestamp")
}
column "uat" {
null = false
type = timestamptz
default = sql("current_timestamp")
}
primary_key {
columns = [column.k]
}
}