@@ -13,30 +13,30 @@ import (
13
13
// Workspace represents the underlying DB object
14
14
type Workspace struct {
15
15
ID string `gorm:"primary_key;column:id;type:char;size:36;" json:"id"`
16
- OwnerID string `gorm:"column:ownerId;type:char;size:36;" json:"owner_id "`
17
- ProjectID sql.NullString `gorm:"column:projectId;type:char;size:36;" json:"project_id "`
16
+ OwnerID string `gorm:"column:ownerId;type:char;size:36;" json:"ownerId "`
17
+ ProjectID sql.NullString `gorm:"column:projectId;type:char;size:36;" json:"projectId "`
18
18
Description string `gorm:"column:description;type:varchar;size:255;" json:"description"`
19
19
Type string `gorm:"column:type;type:char;size:16;default:regular;" json:"type"`
20
- CloneURL string `gorm:"column:cloneURL;type:varchar;size:255;" json:"clone_url "`
20
+ CloneURL string `gorm:"column:cloneURL;type:varchar;size:255;" json:"cloneURL "`
21
21
22
- ContextURL string `gorm:"column:contextURL;type:text;size:65535;" json:"context_url "`
22
+ ContextURL string `gorm:"column:contextURL;type:text;size:65535;" json:"contextURL "`
23
23
Context datatypes.JSON `gorm:"column:context;type:text;size:65535;" json:"context"`
24
24
Config datatypes.JSON `gorm:"column:config;type:text;size:65535;" json:"config"`
25
- BasedOnPrebuildID sql.NullString `gorm:"column:basedOnPrebuildId;type:char;size:36;" json:"based_on_prebuild_id "`
26
- BasedOnSnapshotID sql.NullString `gorm:"column:basedOnSnapshotId;type:char;size:36;" json:"based_on_snapshot_id "`
27
- ImageSource datatypes.JSON `gorm:"column:imageSource;type:text;size:65535;" json:"image_source "`
28
- ImageNameResolved string `gorm:"column:imageNameResolved;type:varchar;size:255;" json:"image_name_resolved "`
29
- BaseImageNameResolved string `gorm:"column:baseImageNameResolved;type:varchar;size:255;" json:"base_image_name_resolved "`
25
+ BasedOnPrebuildID sql.NullString `gorm:"column:basedOnPrebuildId;type:char;size:36;" json:"basedOnPrebuildId "`
26
+ BasedOnSnapshotID sql.NullString `gorm:"column:basedOnSnapshotId;type:char;size:36;" json:"basedOnSnapshotId "`
27
+ ImageSource datatypes.JSON `gorm:"column:imageSource;type:text;size:65535;" json:"imageSource "`
28
+ ImageNameResolved string `gorm:"column:imageNameResolved;type:varchar;size:255;" json:"imageNameResolved "`
29
+ BaseImageNameResolved string `gorm:"column:baseImageNameResolved;type:varchar;size:255;" json:"baseImageNameResolved "`
30
30
31
- CreationTime VarcharTime `gorm:"column:creationTime;type:varchar;size:255;" json:"creation_time "`
32
- LastModified time.Time `gorm:"column:_lastModified;type:timestamp;default:CURRENT_TIMESTAMP(6);" json:"_last_modified "`
33
- SoftDeletedTime VarcharTime `gorm:"column:softDeletedTime;type:varchar;size:255;" json:"soft_deleted_time "`
34
- ContentDeletedTime VarcharTime `gorm:"column:contentDeletedTime;type:varchar;size:255;" json:"content_deleted_time "`
31
+ CreationTime VarcharTime `gorm:"column:creationTime;type:varchar;size:255;" json:"creationTime "`
32
+ LastModified time.Time `gorm:"column:_lastModified;type:timestamp;default:CURRENT_TIMESTAMP(6);" json:"_lastModified "`
33
+ SoftDeletedTime VarcharTime `gorm:"column:softDeletedTime;type:varchar;size:255;" json:"softDeletedTime "`
34
+ ContentDeletedTime VarcharTime `gorm:"column:contentDeletedTime;type:varchar;size:255;" json:"contentDeletedTime "`
35
35
36
36
Archived int32 `gorm:"column:archived;type:tinyint;default:0;" json:"archived"`
37
37
Shareable int32 `gorm:"column:shareable;type:tinyint;default:0;" json:"shareable"`
38
38
39
- SoftDeleted sql.NullString `gorm:"column:softDeleted;type:char;size:4;" json:"soft_deleted "`
39
+ SoftDeleted sql.NullString `gorm:"column:softDeleted;type:char;size:4;" json:"softDeleted "`
40
40
Pinned int32 `gorm:"column:pinned;type:tinyint;default:0;" json:"pinned"`
41
41
42
42
// deleted is reserved for use by db-sync
0 commit comments