11 lines
334 B
Go
11 lines
334 B
Go
// Copyright (c) 2024 Zeni Kim <zenik@smarteching.com>
|
|
// Use of this source code is governed by MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package models
|
|
|
|
type BaseModel struct {
|
|
ID uint `json:"id" gorm:"primaryKey; column:id"`
|
|
Created int64 `gorm:"autoCreateTime"`
|
|
Updated int64 `gorm:"autoUpdateTime"`
|
|
}
|