-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
howyi
committed
Oct 13, 2017
1 parent
a8cee52
commit c65dc66
Showing
14 changed files
with
109 additions
and
96 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/vendor/ | ||
/build/ | ||
composer.lock | ||
Retort |
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
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
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,73 @@ | ||
comment: 課金情報DBテーブル | ||
column: | ||
id: | ||
type: int(11) | ||
comment: ID | ||
attribute: | ||
- auto_increment | ||
- unsigned | ||
osuser_id: | ||
type: varchar(255) | ||
comment: ユーザーID | ||
language_locale: | ||
type: varchar(20) | ||
comment: ユーザーの言語-地域情報 | ||
attribute: | ||
- nullable | ||
point_code: | ||
type: text | ||
comment: 決済管理ID | ||
status: | ||
type: int(11) | ||
comment: 決済状況 | ||
attribute: | ||
- unsigned | ||
item_id: | ||
type: int(11) | ||
comment: アイテムID | ||
attribute: | ||
- unsigned | ||
item_name: | ||
type: varchar(255) | ||
comment: アイテム名 | ||
point: | ||
type: int(11) | ||
comment: 単価 | ||
attribute: | ||
- unsigned | ||
quantity: | ||
type: int(11) | ||
comment: 数量 | ||
attribute: | ||
- unsigned | ||
send_data: | ||
type: varchar(255) | ||
comment: 送信電文 | ||
device: | ||
type: int(11) | ||
comment: デバイス種別 | ||
attribute: | ||
- unsigned | ||
created_at: | ||
type: datetime | ||
comment: 作成日時 | ||
paid_at: | ||
type: datetime | ||
comment: 確定日時 | ||
primary_key: | ||
- id | ||
index: | ||
point_code: | ||
is_unique: true | ||
column: | ||
- point_code(90) | ||
osuser_id: | ||
is_unique: false | ||
column: | ||
- osuser_id | ||
created_at: | ||
is_unique: false | ||
column: | ||
- created_at | ||
default_charset: utf8 | ||
collate: utf8_general_ci |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
comment: 'Country table' | ||
column: | ||
country_id: | ||
type: int(11) | ||
comment: 'Country id' | ||
country_name: | ||
type: varchar(255) | ||
comment: 'Country Name' | ||
primary_key: | ||
- country_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
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 |
---|---|---|
@@ -1,34 +1,2 @@ | ||
type: view | ||
algorithm: merge | ||
alias: | ||
tbl_user: tu | ||
tbl_user_address: tua | ||
tbl_country: tc | ||
column: | ||
user_id: tu.user_id | ||
user_name: tu.name | ||
address_line: tua.address_line | ||
zip_code: tua.zip_code | ||
country_name: tc.country_name | ||
from: | ||
reference: tu | ||
joins: | ||
- join: | ||
factor: tua | ||
on: tu.user_id = tua.user_id | ||
- left_join: | ||
factor: tc | ||
on: tua.country_id = tc.country_id | ||
|
||
# CREATE VIEW `view_user` | ||
# AS SELECT | ||
# `tu`.`user_id` AS `user_id`, | ||
# `tu`.`name` AS `user_name`, | ||
# `tua`.`address_line` AS `address_line`, | ||
# `tua`.`zip_code` AS `zip_code`, | ||
# `tc`.`country_name` AS `country_name` | ||
# FROM ( | ||
# ( | ||
# `tbl_user` `tu` join `tbl_user_address` `tua` on((`tu`.`user_id` = `tua`.`user_id`)) | ||
# ) join `tbl_country` `tc` on((`tua`.`country_id` = `tc`.`country_id`)) | ||
# ) | ||
type: view_raw | ||
query: 'CREATE ALGORITHM=MERGE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_user` AS select `tu`.`user_id` AS `user_id`,`tu`.`name` AS `user_name`,`tua`.`address_line` AS `address_line`,`tua`.`zip_code` AS `zip_code`,`tc`.`country_name` AS `country_name` from ((`tbl_user` `tu` join `tbl_user_address` `tua` on((`tu`.`user_id` = `tua`.`user_id`))) left join `tbl_country` `tc` on((`tua`.`country_id` = `tc`.`country_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
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
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
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,2 @@ | ||
tbl_music.yml: "comment: 'Music management table'\ncolumn:\n music_id:\n type: int(10)\n comment: 'Unique music ID'\n name:\n type: varchar(255)\n comment: 'Music name'\n released_at:\n type: datetime\n comment: 'Music released date'\nprimary_key:\n - music_id\n" | ||
tbl_user.yml: "comment: 'User management table'\ncolumn:\n user_id:\n type: int(11)\n comment: 'User ID'\n name:\n type: int(11)\n comment: 'User name'\n attribute: [nullable]\n age:\n type: int(11)\n comment: 'User age'\n attribute: [nullable]\nprimary_key:\n - user_id\nindex:\n name:\n is_unique: true\n column: [name]\n" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.