Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notifications-bot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archives
notifications-bot
Commits
ee0c2a80
Commit
ee0c2a80
authored
May 10, 2021
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Add gorm spec for RegistrationTimestamp
parent
1f6597dc
No related branches found
No related tags found
1 merge request
!5
Release
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
storage/database.go
+1
-1
1 addition, 1 deletion
storage/database.go
with
1 addition
and
1 deletion
storage/database.go
+
1
−
1
View file @
ee0c2a80
...
...
@@ -50,7 +50,7 @@ type User struct {
Token
string
`gorm:"not null"`
Ephemerals
[]
Ephemeral
`gorm:"foreignKey:transmission_rsa_hash;references:transmission_rsa_hash;constraint:OnDelete:CASCADE;"`
// Time in which user has registered with the network (ie permissioning)
RegistrationTimestamp
time
.
Time
RegistrationTimestamp
time
.
Time
`gorm:"not null"`
}
type
Ephemeral
struct
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment