-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
USE finansu_db; | ||
|
||
CREATE TABLE buy_reports ( | ||
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
festival_item_id INT(10) UNSIGNED NOT NULL, | ||
amount INT(10) NOT NULL, | ||
memo VARCHAR(255) NOT NULL, | ||
paid_by VARCHAR(255) NOT NULL, | ||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (id) | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
USE finansu_db; | ||
|
||
CREATE TABLE divisions ( | ||
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
name VARCHAR(255) NOT NULL, | ||
financial_record_id INT(10) UNSIGNED NOT NULL, | ||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (id) | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
USE finansu_db; | ||
|
||
CREATE TABLE festival_items ( | ||
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
name VARCHAR(255) NOT NULL, | ||
memo VARCHAR(255) NOT NULL, | ||
division_id INT(10) UNSIGNED NOT NULL, | ||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (id) | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
USE finansu_db; | ||
|
||
CREATE TABLE item_budgets ( | ||
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
amount INT(10) NOT NULL, | ||
festival_item_id INT(10) UNSIGNED NOT NULL, | ||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (id) | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
USE finansu_db; | ||
|
||
CREATE TABLE user_groups ( | ||
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
user_id INT(10) NOT NULL, | ||
group_id INT(10) NOT NULL, | ||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (id), | ||
); |