fix data type

This commit is contained in:
divyam234 2023-08-18 04:55:27 +05:30
parent 386096014c
commit 2fb8e8ca9a
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ now())
);
create table teldrive.users (
user_id int4 not null primary key,
user_id bigint not null primary key,
name text null,
user_name text null,
is_premium bool not null,

View file

@ -5,7 +5,7 @@ import (
)
type User struct {
UserId int `gorm:"type:int;primaryKey"`
UserId int `gorm:"type:bigint;primaryKey"`
Name string `gorm:"type:text"`
UserName string `gorm:"type:text"`
IsPremium bool `gorm:"type:bool"`