From 668c7d0795f2c73ab23377acf526579ba08f8a22 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 7 Sep 2024 13:35:52 +0200 Subject: [PATCH] add time --- models/roles.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/models/roles.go b/models/roles.go index a0ecddb..e8a9c85 100644 --- a/models/roles.go +++ b/models/roles.go @@ -1,14 +1,20 @@ package models +import "time" + type Role struct { Id string `gorm:"primaryKey;type:varchar(36)"` OrganizationId string `gorm:"type:varchar(36)"` Master bool `gorm:"type:tinyint(1)"` Name string `gorm:"type:varchar(255)"` + CreatedAt time.Time + UpdatedAt time.Time } type RolePermission struct { Id string `gorm:"primaryKey;type:varchar(36)"` RoleId string `gorm:"type:varchar(36)"` Permission uint16 `gorm:"type:smallint"` + CreatedAt time.Time + UpdatedAt time.Time }