Compare commits
No commits in common. "7062cb630e14e73b25d2872710baf8b633145b02" and "effcd2c07385d63af4629c1481aa8a85b18a36e8" have entirely different histories.
7062cb630e
...
effcd2c073
@ -8,9 +8,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
IsAdmin bool `json:"isAdmin"`
|
IsAdmin bool `json:"isAdmin"`
|
||||||
CanCreate bool `json:"canCreate"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type MIME struct {
|
type MIME struct {
|
||||||
@ -48,12 +47,12 @@ type (
|
|||||||
}
|
}
|
||||||
FileFull struct {
|
FileFull struct {
|
||||||
FileCore
|
FileCore
|
||||||
CreatedAt time.Time `json:"createdAt"`
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
Creator User `json:"creator"`
|
Creator User `json:"creator"`
|
||||||
Notes pgtype.Text `json:"notes"`
|
Notes pgtype.Text `json:"notes"`
|
||||||
Metadata json.RawMessage `json:"metadata"`
|
Metadata *json.RawMessage `json:"metadata"`
|
||||||
Tags []TagCore `json:"tags"`
|
Tags []TagCore `json:"tags"`
|
||||||
Viewed int `json:"viewed"`
|
Viewed int `json:"viewed"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -304,7 +304,7 @@ CREATE TABLE data.files (
|
|||||||
mime_id smallint NOT NULL,
|
mime_id smallint NOT NULL,
|
||||||
datetime timestamp with time zone DEFAULT clock_timestamp() NOT NULL,
|
datetime timestamp with time zone DEFAULT clock_timestamp() NOT NULL,
|
||||||
notes text,
|
notes text,
|
||||||
metadata jsonb NOT NULL,
|
metadata jsonb,
|
||||||
creator_id smallint NOT NULL,
|
creator_id smallint NOT NULL,
|
||||||
is_deleted boolean DEFAULT false NOT NULL
|
is_deleted boolean DEFAULT false NOT NULL
|
||||||
);
|
);
|
||||||
@ -375,8 +375,7 @@ CREATE TABLE system.users (
|
|||||||
id smallint NOT NULL,
|
id smallint NOT NULL,
|
||||||
name character varying(32) NOT NULL,
|
name character varying(32) NOT NULL,
|
||||||
password text NOT NULL,
|
password text NOT NULL,
|
||||||
is_admin boolean DEFAULT false NOT NULL,
|
is_admin boolean DEFAULT false NOT NULL
|
||||||
can_create boolean DEFAULT false NOT NULL
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user