Skip to content

Instantly share code, notes, and snippets.

@shrinivdeshmukh
Created May 31, 2021 15:13
Show Gist options
  • Save shrinivdeshmukh/25859d1d9800ea59b8af3a27eacb680b to your computer and use it in GitHub Desktop.
Save shrinivdeshmukh/25859d1d9800ea59b8af3a27eacb680b to your computer and use it in GitHub Desktop.
tables:
user:
columns:
- name: user_id
type: integer
primary_key: true
- name: firstname
type: varchar
length: 20
- name: lastname
type: varchar
length: 20
- name: dob
type: date
- name: contact
type: numeric
nullable: false
unique: true
- name: address
type: varchar
length: 200
order:
columns:
- name: order_id
type: integer
primary_key: true
- name: hotel_name
type: varchar
length: 100
- name: order_date
type: date
- name: amount
type: float
- name: user_id
type: integer
foreign_key: user.user_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment