// Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. // Code generated by gorm.io/gen. DO NOT EDIT. package domain import ( "time" ) const TableNameUsers = "users_" // Users mapped from table type Users struct { ID string `gorm:"column:id;type:uuid;not null;default:gen_random_uuid()" json:"id"` MerchantID *string `gorm:"column:merchant_id;type:uuid;index:idx_users_merchant,priority:1" json:"merchant_id"` Username string `gorm:"column:username;type:character varying(50);not null;index:idx_users_username,priority:1" json:"username"` Email string `gorm:"column:email;type:character varying(100);not null" json:"email"` Password string `gorm:"column:password;type:character varying(200);not null" json:"password"` Role string `gorm:"column:role;type:character varying(20);not null;default:cashier" json:"role"` IsActive *bool `gorm:"column:is_active;type:boolean;default:true" json:"is_active"` CreatedAt *time.Time `gorm:"column:created_at;type:timestamp without time zone;default:now()" json:"created_at"` UpdatedAt *time.Time `gorm:"column:updated_at;type:timestamp without time zone;default:now()" json:"updated_at"` } // TableName Users's table name func (*Users) TableName() string { return TableNameUsers }