Skip to content

Instantly share code, notes, and snippets.

@goodpic
Last active September 10, 2018 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goodpic/d3e168a58dcfd4c984df7ab0052ac2f2 to your computer and use it in GitHub Desktop.
Save goodpic/d3e168a58dcfd4c984df7ab0052ac2f2 to your computer and use it in GitHub Desktop.
Sample table: Shop transaction
+-------------------+-----------+----------+-------------------------+
| Field name | Type | Mode | Description |
+-------------------+-----------+----------+-------------------------+
| id | INTEGER | REQUIRED | Transaction ID |
| shop_name | STRING | NULLABLE | |
| customers | INTEGER | NULLABLE | Number of customers |
| sales | NUMERIC | NULLABLE | Total sales |
| tax | NUMERIC | NULLABLE | VAT tax paid |
| cost | NUMERIC | NULLABLE | Total costs |
| discount | NUMERIC | NULLABLE | Total discount |
| invoiced_at | TIMESTAMP | NULLABLE | Transaction time in UTC |
| local_invoiced_at | DATETIME | NULLABLE | In local time |
+-------------------+-----------+----------+-------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment