mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
22 lines
686 B
Go
22 lines
686 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Bank struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
Name string `gorm:"type:varchar(50);not null;uniqueIndex:banks_name_unique,where:deleted_at IS NULL"`
|
|
Alias string `gorm:"not null;size:5"`
|
|
Owner *string `gorm:"type:varchar(50)"`
|
|
AccountNumber string `gorm:"not null;size:50"`
|
|
CreatedBy uint `gorm:"not null"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
|
|
|
CreatedUser User `gorm:"foreignKey:CreatedBy;references:Id"`
|
|
}
|