create table "bsre_logs" (
                            "id" char(36) not null primary key,
                            "nik" varchar(255) not null,
                            "nrp" varchar(255) not null,
                            "message" varchar(255) not null,
                            "created_at" timestamp,
                            "updated_at" timestamp
);
comment on table "bsre_logs" is 'null';

create table "roles" (
                        "id" char(36) not null primary key,
                        "name" varchar(255) not null,
                        "created_at" timestamp,
                        "updated_at" timestamp
);
comment on table "roles" is 'null';

create table "users" (
                        "id" char(36) not null primary key,
                        "name" varchar(255) not null,
                        "email" varchar(255) not null,
                        "phone" varchar(255) not null,
                        "email_verified_at" timestamp,
                        "phone_verified_at" timestamp,
                        "password" varchar(255) not null,
                        "nrp" varchar(255),
                        "nik" varchar(255),
                        "response_status" varchar(255),
                        "pangkat" varchar(255),
                        "nama_tanpa_gelar" varchar(255),
                        "jabatan" varchar(255),
                        "is_changed" int,
                        "satuan" text,
                        "pangkat_lengkap" varchar(255),
                        "satker" varchar(255),
                        "nama_aplikasi" varchar(255),
                        "device_token" varchar(255),
                        "created_at" timestamp,
                        "updated_at" timestamp
);
comment on table "users" is 'null';

create table "user_initials" (
                                "id" char(36) not null primary key,
                                "user_id" char(36) not null,
                                "file" varchar(255) not null,
                                "created_at" timestamp,
                                "updated_at" timestamp
);
comment on table "user_initials" is 'null';

create table "user_roles" (
                             "id" char(36) not null primary key,
                             "user_id" char(36) not null,
                             "role_id" char(36) not null,
                             "created_at" timestamp,
                             "updated_at" timestamp
);
comment on table "user_roles" is 'null';

create table "user_signatures" (
                                  "id" char(36) not null primary key,
                                  "user_id" char(36) not null,
                                  "file" varchar(255) not null,
                                  "created_at" timestamp,
                                  "updated_at" timestamp
);
comment on table "user_signatures" is 'null';

create table "one_time_passwords" (
                                     "id" char(36) not null primary key,
                                     "user_id" char(36) not null,
                                     "code" varchar(255) not null,
                                     "expired_at" timestamp,
                                     "used_at" timestamp,
                                     "created_at" timestamp,
                                     "updated_at" timestamp
);
comment on table "one_time_passwords" is 'null';

