-
Notifications
You must be signed in to change notification settings - Fork 370
Expand file tree
/
Copy pathmodels.go
More file actions
275 lines (251 loc) · 6.13 KB
/
Copy pathmodels.go
File metadata and controls
275 lines (251 loc) · 6.13 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.29.0
package queries
import (
"time"
"github.com/google/uuid"
"github.com/jackc/pgx/v5/pgtype"
)
type AccessToken struct {
UserID uuid.UUID
CreatedAt time.Time
ID uuid.UUID
// sensitive
AccessTokenHash string
Name string
AccessTokenPrefix string
AccessTokenLength int32
AccessTokenMaskPrefix string
AccessTokenMaskSuffix string
}
type ActiveEnv struct {
ID string
CreatedAt time.Time
UpdatedAt time.Time
Public bool
BuildCount int32
SpawnCount int64
LastSpawnedAt *time.Time
TeamID uuid.UUID
CreatedBy *uuid.UUID
ClusterID *uuid.UUID
Source string
}
type ActiveTemplateBuild struct {
BuildID uuid.UUID
TeamID uuid.UUID
TemplateID string
Tags []string
CreatedAt time.Time
}
type Addon struct {
ID uuid.UUID
TeamID uuid.UUID
Name string
Description pgtype.Text
ExtraConcurrentSandboxes int64
ExtraConcurrentTemplateBuilds int64
ExtraMaxVcpu int64
ExtraMaxRamMb int64
ExtraDiskMb int64
ValidFrom time.Time
ValidTo *time.Time
AddedBy uuid.UUID
IdempotencyKey pgtype.Text
ExtraEventsTtlDays int64
ExtraMaxDiskSizeMb pgtype.Int8
}
type AuthUser struct {
ID uuid.UUID
Email string
CreatedAt time.Time
RawAppMetaData []byte
RawUserMetaData []byte
}
type BillingSandboxLog struct {
SandboxID string
EnvID string
Vcpu int64
RamMb int64
TotalDiskSizeMb int64
StartedAt time.Time
StoppedAt *time.Time
CreatedAt time.Time
TeamID uuid.UUID
}
type Cluster struct {
ID uuid.UUID
Endpoint string
EndpointTls bool
Token string
SandboxProxyDomain pgtype.Text
AuthOrgID pgtype.Text
Name string
}
type Env struct {
ID string
CreatedAt time.Time
UpdatedAt time.Time
Public bool
BuildCount int32
// Number of times the env was spawned
SpawnCount int64
// Timestamp of the last time the env was spawned
LastSpawnedAt *time.Time
TeamID uuid.UUID
CreatedBy *uuid.UUID
ClusterID *uuid.UUID
Source string
DeletedAt *time.Time
}
type EnvAlias struct {
Alias string
IsRenamable bool
EnvID string
Namespace pgtype.Text
ID uuid.UUID
}
type EnvBuild struct {
ID uuid.UUID
CreatedAt time.Time
UpdatedAt time.Time
FinishedAt *time.Time
Status string
Dockerfile pgtype.Text
StartCmd pgtype.Text
Vcpu int64
RamMb int64
FreeDiskSizeMb int64
TotalDiskSizeMb pgtype.Int8
KernelVersion string
FirecrackerVersion string
EnvID pgtype.Text
EnvdVersion pgtype.Text
ReadyCmd pgtype.Text
ClusterNodeID pgtype.Text
Reason []byte
Version pgtype.Text
CpuArchitecture pgtype.Text
CpuFamily pgtype.Text
CpuModel pgtype.Text
CpuModelName pgtype.Text
CpuFlags []string
StatusGroup string
TeamID *uuid.UUID
}
type EnvBuildAssignment struct {
ID uuid.UUID
EnvID string
BuildID uuid.UUID
Tag string
Source string
CreatedAt pgtype.Timestamptz
}
type Snapshot struct {
CreatedAt pgtype.Timestamptz
EnvID string
SandboxID string
ID uuid.UUID
Metadata []byte
BaseEnvID string
SandboxStartedAt pgtype.Timestamptz
EnvSecure bool
OriginNodeID string
AllowInternetAccess pgtype.Bool
AutoPause bool
TeamID uuid.UUID
Config []byte
}
type SnapshotTemplate struct {
EnvID string
SandboxID string
CreatedAt pgtype.Timestamptz
OriginNodeID pgtype.Text
BuildID *uuid.UUID
}
type Team struct {
ID uuid.UUID
CreatedAt time.Time
IsBlocked bool
Name string
Tier string
Email string
IsBanned bool
BlockedReason pgtype.Text
ClusterID *uuid.UUID
SandboxSchedulingLabels []string
SsoOrganizationID *uuid.UUID
SsoAutoJoin bool
Slug string
}
type TeamApiKey struct {
CreatedAt time.Time
TeamID uuid.UUID
UpdatedAt *time.Time
Name string
LastUsed *time.Time
CreatedBy *uuid.UUID
ID uuid.UUID
// sensitive
ApiKeyHash string
ApiKeyPrefix string
ApiKeyLength int32
ApiKeyMaskPrefix string
ApiKeyMaskSuffix string
}
type TeamLimit struct {
ID uuid.UUID
MaxLengthHours int64
ConcurrentSandboxes int32
ConcurrentTemplateBuilds int32
MaxVcpu int32
MaxRamMb int32
DiskMb int32
EventsTtlDays int32
DefaultFreeDiskSizeMb *int64
MaxDiskSizeMb *int64
}
type Tier struct {
ID string
Name string
DiskMb int64
// The number of instances the team can run concurrently
ConcurrentInstances int64
MaxLengthHours int64
MaxVcpu int64
MaxRamMb int64
// The number of concurrent template builds the team can run
ConcurrentTemplateBuilds int64
EventsTtlDays int64
DefaultFreeDiskSizeMb pgtype.Int8
MaxDiskSizeMb pgtype.Int8
}
type User struct {
CreatedAt time.Time
UpdatedAt time.Time
ID uuid.UUID
}
type UserIdentity struct {
CreatedAt time.Time
UpdatedAt time.Time
OidcIss string
OidcSub string
UserID uuid.UUID
}
type UsersTeam struct {
ID int64
UserID uuid.UUID
TeamID uuid.UUID
IsDefault bool
AddedBy *uuid.UUID
CreatedAt pgtype.Timestamp
UuidID uuid.UUID
}
type Volume struct {
ID uuid.UUID
TeamID uuid.UUID
Name string
VolumeType string
CreatedAt pgtype.Timestamptz
}