File tree Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,17 @@ import (
9
9
)
10
10
11
11
type Team struct {
12
- ID string `gorm:"primary_key;column:id;type:char;size:36;" json:"id"`
13
- Name string `gorm:"column:name;type:varchar;size:255;" json:"name"`
14
- Slug string `gorm:"column:slug;type:varchar;size:255;" json:"slug"`
15
- CreationTime string `gorm:"column:creationTime;type:varchar;size:255;" json:"creation_time"`
16
- Deleted int32 `gorm:"column:deleted;type:tinyint;default:0;" json:"deleted"`
17
- LastModified time.Time `gorm:"column:_lastModified;type:timestamp;default:CURRENT_TIMESTAMP(6);" json:"_last_modified"`
18
- MarkedDeleted int32 `gorm:"column:markedDeleted;type:tinyint;default:0;" json:"marked_deleted"`
12
+ ID string `gorm:"primary_key;column:id;type:char;size:36;" json:"id"`
13
+ Name string `gorm:"column:name;type:varchar;size:255;" json:"name"`
14
+ Slug string `gorm:"column:slug;type:varchar;size:255;" json:"slug"`
15
+
16
+ CreationTime VarcharTime `gorm:"column:creationTime;type:varchar;size:255;" json:"creation_time"`
17
+ LastModified time.Time `gorm:"column:_lastModified;type:timestamp;default:CURRENT_TIMESTAMP(6);" json:"_last_modified"`
18
+
19
+ MarkedDeleted int32 `gorm:"column:markedDeleted;type:tinyint;default:0;" json:"marked_deleted"`
20
+
21
+ // deleted is reserved for use by db-sync.
22
+ _ int32 `gorm:"column:deleted;type:tinyint;default:0;" json:"deleted"`
19
23
}
20
24
21
25
// TableName sets the insert table name for this struct type
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
+ // Licensed under the GNU Affero General Public License (AGPL).
3
+ // See License-AGPL.txt in the project root for license information.
4
+
5
+ package db_test
6
+
7
+ import "testing"
8
+
9
+ func TestTeam_ReadFromExistingData (t * testing.T ) {
10
+
11
+ }
You can’t perform that action at this time.
0 commit comments