mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-02-24 06:55:02 +08:00
fix data type
This commit is contained in:
parent
386096014c
commit
2fb8e8ca9a
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue