package model import ( "time" ) type User struct { ID string `psql:"id integer GENERATED ALWAYS AS IDENTITY" db:"id" bson:"_id,omitempty"` FullName string `psql:"full_name varchar(150)" db:"full_name" bson:"full_name"` Email string `psql:"email varchar(150)" db:"email" bson:"email"` Password string `psql:"password varchar(150)" db:"password" bson:"password"` IsActivated bool `psql:"is_activated bool" db:"is_activated" bson:"is_activated"` RoleID int `psql:"role_id integer" db:"role_id" bson:"role_id"` JwtToken string `psql:"jwt_token varchar(150)" db:"jwt_token" bson:"jwt_token"` // not in use IsDeleted bool `psql:"is_deleted bool" db:"is_deleted" bson:"is_deleted"` CreatedAt time.Time `psql:"created_at timestamp" db:"created_at" bson:"created_at"` UpdatedAt time.Time `psql:"updated_at timestamp" db:"updated_at" bson:"updated_at"` }