Skip to content

Instantly share code, notes, and snippets.

@shrinivdeshmukh
Last active May 31, 2021 13:28
Show Gist options
  • Save shrinivdeshmukh/4b14612d46f4ed5a78d3cdc5b41fb1e9 to your computer and use it in GitHub Desktop.
Save shrinivdeshmukh/4b14612d46f4ed5a78d3cdc5b41fb1e9 to your computer and use it in GitHub Desktop.
tables: # In this section, we define the tables, their name and schema
userinfo: # This is the table name
columns: # In this section, we define column names and their data types
- name: id
type: integer
primary_key: true # Set this value for the primary key column
- name: firstname # Column name
type: varchar # Column datatype
length: 20
- name: lastname
type: varchar
length: 20
- name: dob
type: date
- name: contact
type: numeric
nullable: false # Allow / disallow null values in the column, default `true`
unique: true # Apply unique constraint for the column, default `false`
- name: address
type: varchar
length: 200 # specify length of the column
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment