cup/models/base.go
2024-12-06 04:48:10 -05:00

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"`
}