Skip to content

Commit

Permalink
feat(cash): add created_at timestamp
Browse files Browse the repository at this point in the history
This commit adds the created_at timestamp to the cash table.

Closes #1137.
  • Loading branch information
Jonathan Niles authored and sfount committed Feb 10, 2017
1 parent cda9ea0 commit c573a48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/models/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ CREATE TABLE `cash` (
`cashbox_id` MEDIUMINT(8) UNSIGNED NOT NULL,
`description` TEXT,
`is_caution` BOOLEAN NOT NULL DEFAULT 0,
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`uuid`),
UNIQUE KEY `cash_1` (`reference`, `project_id`),
KEY `project_id` (`project_id`),
Expand Down

0 comments on commit c573a48

Please sign in to comment.