Compare commits

..

No commits in common. "7062cb630e14e73b25d2872710baf8b633145b02" and "effcd2c07385d63af4629c1481aa8a85b18a36e8" have entirely different histories.

2 changed files with 10 additions and 12 deletions

View File

@ -10,7 +10,6 @@ import (
type User struct {
Name string `json:"name"`
IsAdmin bool `json:"isAdmin"`
CanCreate bool `json:"canCreate"`
}
type MIME struct {
@ -51,7 +50,7 @@ type (
CreatedAt time.Time `json:"createdAt"`
Creator User `json:"creator"`
Notes pgtype.Text `json:"notes"`
Metadata json.RawMessage `json:"metadata"`
Metadata *json.RawMessage `json:"metadata"`
Tags []TagCore `json:"tags"`
Viewed int `json:"viewed"`
}

View File

@ -304,7 +304,7 @@ CREATE TABLE data.files (
mime_id smallint NOT NULL,
datetime timestamp with time zone DEFAULT clock_timestamp() NOT NULL,
notes text,
metadata jsonb NOT NULL,
metadata jsonb,
creator_id smallint NOT NULL,
is_deleted boolean DEFAULT false NOT NULL
);
@ -375,8 +375,7 @@ CREATE TABLE system.users (
id smallint NOT NULL,
name character varying(32) NOT NULL,
password text NOT NULL,
is_admin boolean DEFAULT false NOT NULL,
can_create boolean DEFAULT false NOT NULL
is_admin boolean DEFAULT false NOT NULL
);