Created
February 8, 2020 10:19
-
-
Save h4ckm03d/9993d4e80a4f60ded14d9797f76a460b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Table "bills" { | |
"id" bigint [not null] | |
"amount" double [not null] | |
"discount" double [not null] | |
"void" boolean [not null, default: false] | |
"created_at" timestamp [not null] | |
"updated_at" timestamp [not null] | |
"payments_id" bigint | |
} | |
Table "items" { | |
"id" bigint [not null] | |
"name" "character varying" [not null] | |
"price" double [not null] | |
"description" "character varying" | |
"image_url" "character varying" | |
"created_at" timestamp [not null] | |
"updated_at" timestamp [not null] | |
} | |
Table "payments" { | |
"id" bigint [not null] | |
"name" "character varying" [not null] | |
"created_at" timestamp [not null] | |
"updated_at" timestamp [not null] | |
} | |
Table "purchase_details" { | |
"id" bigint [not null] | |
"price" double [not null] | |
"quantity" bigint [not null] | |
"created_at" timestamp [not null] | |
"updated_at" timestamp [not null] | |
"items_id" bigint | |
"purchases_id" bigint | |
} | |
Table "purchases" { | |
"id" bigint [not null] | |
"customer_name" "character varying" [not null] | |
"created_at" timestamp [not null] | |
"updated_at" timestamp [not null] | |
} | |
Table "tables" { | |
"id" bigint [not null] | |
"name" "character varying" [not null] | |
"capacity" bigint | |
"created_at" timestamp [not null] | |
"updated_at" timestamp [not null] | |
"tenants_id" bigint | |
} | |
Table "taxes" { | |
"id" bigint [not null] | |
"name" "character varying" [not null] | |
"altname" "character varying" [not null] | |
"type" "character varying" [not null] | |
"value" "character varying" [not null] | |
"multiplier" double [not null] | |
"created_at" timestamp [not null] | |
"updated_at" timestamp [not null] | |
} | |
Table "tenants" { | |
"id" bigint [not null] | |
"name" "character varying" [not null] | |
"address" "character varying" [not null] | |
"phone" "character varying" [not null] | |
"created_at" timestamp [not null] | |
"updated_at" timestamp [not null] | |
"main_id" bigint | |
} | |
Table "users" { | |
"id" bigint [not null] | |
"fullname" "character varying" [not null] | |
"username" "character varying" [not null] | |
"password_hash" "character varying" [not null] | |
"email" "character varying" [not null] | |
"address" "character varying" [not null] | |
"roles" smallint [not null, default: 0] | |
"created_at" timestamp [not null] | |
"updated_at" timestamp [not null] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment