mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2025-06-03 23:47:27 +02:00
19 lines
762 B
Go
19 lines
762 B
Go
package tables
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// ===========================================================================
|
|
// ===== Объекты =====
|
|
// ===========================================================================
|
|
|
|
type CommonStruct struct {
|
|
ID int64 `json:"id" gorm:"column:id;primaryKey;autoIncrement:true"`
|
|
ExtID int64 `json:"ext_id" gorm:"column:ext_id;default:null"`
|
|
CreatedAt time.Time `json:"created_at" gorm:"column:created_at;autoCreateTime;<-:create;"`
|
|
ModifiedAt time.Time `json:"modified_at" gorm:"column:modified_at;autoUpdateTime"`
|
|
DeletedAt time.Time `json:"deleted_at" gorm:"column:deleted_at;default:null"`
|
|
IsDeleted bool `json:"is_deleted" gorm:"column:is_deleted;default:false"`
|
|
}
|