Skip to content

[usage] Add db.Team model in golang #10369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2022
Merged

[usage] Add db.Team model in golang #10369

merged 1 commit into from
Jun 7, 2022

Conversation

easyCZ
Copy link
Member

@easyCZ easyCZ commented May 31, 2022

Description

Related Issue(s)

How to test

Unit tests

Release Notes

NONE

Documentation

NONE

@easyCZ easyCZ force-pushed the mp/usage-db-team branch 2 times, most recently from 2fdff0f to e19f7f6 Compare June 1, 2022 07:23
@roboquat roboquat added size/M and removed size/S labels Jun 1, 2022
@easyCZ easyCZ force-pushed the mp/usage-db-team branch from 7397333 to 909c41a Compare June 1, 2022 07:28
@easyCZ easyCZ changed the base branch from main to mp/usage-wsi-model June 1, 2022 07:28
@roboquat roboquat added size/L and removed size/M labels Jun 1, 2022
@easyCZ easyCZ force-pushed the mp/usage-wsi-model branch from 44c4e93 to c1f1ae7 Compare June 2, 2022 11:12
@roboquat roboquat added size/XL and removed size/L labels Jun 2, 2022
@easyCZ easyCZ force-pushed the mp/usage-db-team branch from e933d58 to e0398e5 Compare June 2, 2022 12:41
@easyCZ easyCZ force-pushed the mp/usage-wsi-model branch from c1f1ae7 to 9f1b591 Compare June 2, 2022 12:42
@easyCZ easyCZ force-pushed the mp/usage-db-team branch from e0398e5 to 6e256ca Compare June 2, 2022 12:46
@easyCZ easyCZ force-pushed the mp/usage-db-team branch from 908cfca to e46fdbf Compare June 2, 2022 12:47
@easyCZ easyCZ force-pushed the mp/usage-wsi-model branch from 9f1b591 to 743b6c4 Compare June 2, 2022 12:51
Base automatically changed from mp/usage-wsi-model to main June 2, 2022 12:57
@roboquat roboquat added size/XL and removed size/L labels Jun 2, 2022
@easyCZ easyCZ force-pushed the mp/usage-db-team branch from e46fdbf to 87162a7 Compare June 2, 2022 13:53
@roboquat roboquat added size/L and removed size/XL labels Jun 2, 2022
@easyCZ easyCZ marked this pull request as ready for review June 2, 2022 13:55
@easyCZ easyCZ requested a review from a team June 2, 2022 13:55
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Jun 2, 2022
Comment on lines +17 to +23
CreationTime VarcharTime `gorm:"column:creationTime;type:varchar;size:255;" json:"creationTime"`
LastModified time.Time `gorm:"column:_lastModified;type:timestamp;default:CURRENT_TIMESTAMP(6);" json:"_lastModified"`

MarkedDeleted bool `gorm:"column:markedDeleted;type:tinyint;default:0;" json:"marked_deleted"`

// deleted is reserved for use by db-sync.
_ bool `gorm:"column:deleted;type:tinyint;default:0;" json:"deleted"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you embed gorm.Model here to get these fields for free or do the two meaning of the deleted field prevent that?

@roboquat roboquat merged commit 52ac5a5 into main Jun 7, 2022
@roboquat roboquat deleted the mp/usage-db-team branch June 7, 2022 10:43
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/L team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define db models in Golang
3 participants