pejhancctv/models/phone.go

16 lines
435 B
Go
Raw Normal View History

2024-01-08 16:06:31 +03:30
package models
import "time"
type Phone struct {
Phone_id uint `gorm:"primaryKey"`
User_id uint
User User `gorm:"references:User_id"`
Phone_number string `gorm:"type:varchar(11)"`
BackUp_nummber string `gorm:"type:varchar(11)"`
Created_at time.Time
Updated_at time.Time `gorm:"default:null"`
Removed_at time.Time `gorm:"default:null"`
Is_removed bool `gorm:"default:false"`
}