Skip to content

Instantly share code, notes, and snippets.

@katekimani
Created December 2, 2015 08:37
Show Gist options
  • Save katekimani/191092ec84527af15d01 to your computer and use it in GitHub Desktop.
Save katekimani/191092ec84527af15d01 to your computer and use it in GitHub Desktop.
create table admins (
id uuid not null,
name text not null,
email text not null,
encrypted_password text not null,
reset_password_token text not null,
reset_password_sent_at timestamp,
remember_created_at timestamp,
sign_in_count integer not null,
current_sign_in_at timestamp,
last_sign_in_at timestamp,
current_sign_in_ip inet,
last_sign_in_ip inet,
confirmation_token text,
confirmed_at timestamp,
confirmation_sent_at timestamp,
unconfirmed_email text,
failed_attempts integer not null,
unlock_token text,
locked_at timestamp,
created_at timestamp not null,
updated_at timestamp not null
);
create table hospitals (
id uuid,
name text,
location text,
level text,
address text,
created_at timestamp not null,
updated_at timestamp not null,
ref text not null
);
create table med_tests (
id uuid,
record_id uuid,
test text,
result text,
created_at timestamp not null,
updated_at timestamp not null
);
create table medications (
id uuid,
record_id uuid,
medication text,
created_at timestamp not null,
updated_at timestamp not null
);
@katekimani
Copy link
Author

The SQL database schema for PMHRS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment