Skip to content

Commit

Permalink
Update the actions which might provide some bugs, and wrong soft dele…
Browse files Browse the repository at this point in the history
…te/update (#71)
  • Loading branch information
torabian authored Aug 24, 2024
1 parent 7ea3790 commit 7087e8c
Show file tree
Hide file tree
Showing 33 changed files with 209 additions and 98 deletions.
4 changes: 2 additions & 2 deletions modules/workspaces/AppMenuEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ type AppMenuEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
Label *string `json:"label" yaml:"label" translate:"true" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/BackupTableMetaEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type BackupTableMetaEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
TableNameInDb *string `json:"tableNameInDb" yaml:"tableNameInDb" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/CapabilityEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type CapabilityEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
Name *string `json:"name" yaml:"name" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/EmailConfirmationEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type EmailConfirmationEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
User *UserEntity `json:"user" yaml:"user" gorm:"foreignKey:UserId;references:UniqueId" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/EmailProviderEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type EmailProviderEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
Type *string `json:"type" yaml:"type" validate:"required" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/EmailSenderEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type EmailSenderEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
FromName *string `json:"fromName" yaml:"fromName" validate:"required" `
Expand Down
8 changes: 4 additions & 4 deletions modules/workspaces/FileEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type FileVariations struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
Name *string `json:"name" yaml:"name" `
Expand All @@ -66,9 +66,9 @@ type FileEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
Name *string `json:"name" yaml:"name" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/ForgetPasswordEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type ForgetPasswordEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
User *UserEntity `json:"false" yaml:"user" gorm:"foreignKey:UserId;references:UniqueId" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/GsmProviderEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type GsmProviderEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
ApiKey *string `json:"apiKey" yaml:"apiKey" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/NotificationConfigEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type NotificationConfigEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
CascadeToSubWorkspaces *bool `json:"cascadeToSubWorkspaces" yaml:"cascadeToSubWorkspaces" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/PassportEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type PassportEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
Type *string `json:"type" yaml:"type" validate:"required" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/PassportMethodEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type PassportMethodEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
Name *string `json:"name" yaml:"name" validate:"required" translate:"true" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/PendingWorkspaceInviteEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type PendingWorkspaceInviteEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
Value *string `json:"value" yaml:"value" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/PersonEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type PersonEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
FirstName *string `json:"firstName" yaml:"firstName" validate:"required" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/PhoneConfirmationEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type PhoneConfirmationEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
User *UserEntity `json:"user" yaml:"user" gorm:"foreignKey:UserId;references:UniqueId" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/PreferenceEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type PreferenceEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
Timezone *string `json:"timezone" yaml:"timezone" `
Expand Down
4 changes: 2 additions & 2 deletions modules/workspaces/PublicJoinKeyEntity.dyno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type PublicJoinKeyEntity struct {
Rank int64 `json:"rank,omitempty" gorm:"type:int;name:rank"`
ID uint `gorm:"primaryKey;autoIncrement" json:"id,omitempty" yaml:"id,omitempty"`
UniqueId string `json:"uniqueId,omitempty" gorm:"unique;not null;size:100;" yaml:"uniqueId"`
Updated int64 `json:"updated,omitempty" gorm:"autoUpdateTime:nano"`
Created int64 `json:"created,omitempty" gorm:"autoUpdateTime:nano"`
Deleted int64 `json:"deleted,omitempty" gorm:"autoUpdateTime:nano"`
Updated int64 `json:"updated,omitempty"`
Deleted int64 `json:"deleted,omitempty"`
CreatedFormatted string `json:"createdFormatted,omitempty" sql:"-" gorm:"-"`
UpdatedFormatted string `json:"updatedFormatted,omitempty" sql:"-" gorm:"-"`
Role *RoleEntity `json:"role" yaml:"role" gorm:"foreignKey:RoleId;references:UniqueId" `
Expand Down
Loading

0 comments on commit 7087e8c

Please sign in to comment.