Browse Source
add more squil and rename Entry to CardEntry as its child components may be useful in other contexts.
mian
add more squil and rename Entry to CardEntry as its child components may be useful in other contexts.
mian
14 changed files with 98 additions and 31 deletions
-
2scripts/goose-mysql/20220326173144_stat.sql
-
6scripts/goose-mysql/20220326174046_project.sql
-
16scripts/goose-mysql/20220404144911_project_requirement.sql
-
19scripts/goose-mysql/20220404144914_item.sql
-
17scripts/goose-mysql/20220404144947_item_stat_progress.sql
-
15scripts/goose-mysql/20220404184237_project_requirement_stat.sql
-
16src/lib/components/frontpage/ItemLink.svelte
-
6src/lib/components/frontpage/RequirementLink.svelte
-
6src/lib/components/frontpage/ScopeLink.svelte
-
16src/lib/components/frontpage/SprintLink.svelte
-
0src/lib/components/layout/CardEntry.svelte
-
2src/lib/database/mysql/database.ts
-
2src/lib/database/mysql/scopes.ts
-
6src/lib/models/item.ts
@ -0,0 +1,16 @@ |
|||
-- +goose Up |
|||
-- +goose StatementBegin |
|||
CREATE TABLE project_requirement ( |
|||
`id` INT NOT NULL PRIMARY KEY AUTO_INCREMENT, |
|||
`scope_id` INT NOT NULL, |
|||
`project_id` INT NOT NULL, |
|||
`name` VARCHAR(255) NOT NULL, |
|||
`status` INT NOT NULL, |
|||
`description` TEXT NOT NULL |
|||
) |
|||
-- +goose StatementEnd |
|||
|
|||
-- +goose Down |
|||
-- +goose StatementBegin |
|||
DROP TABLE IF EXISTS project_requirement; |
|||
-- +goose StatementEnd |
|||
@ -0,0 +1,19 @@ |
|||
-- +goose Up |
|||
-- +goose StatementBegin |
|||
CREATE TABLE item ( |
|||
`id` INT NOT NULL PRIMARY KEY AUTO_INCREMENT, |
|||
`scope_id` INT NOT NULL, |
|||
`project_requirement_id` INT, |
|||
`name` VARCHAR(255) NOT NULL, |
|||
`description` TEXT NOT NULL, |
|||
`created_time` DATETIME NOT NULL, |
|||
`created_user_id` CHAR(36) NOT NULL, |
|||
`acquired_time` DATETIME, |
|||
`scheduled_date` DATE |
|||
) |
|||
-- +goose StatementEnd |
|||
|
|||
-- +goose Down |
|||
-- +goose StatementBegin |
|||
DROP TABLE IF EXISTS item; |
|||
-- +goose StatementEnd |
|||
@ -0,0 +1,17 @@ |
|||
-- +goose Up |
|||
-- +goose StatementBegin |
|||
CREATE TABLE item_stat_progress ( |
|||
`item_id` INT NOT NULL, |
|||
`stat_id` INT NOT NULL, |
|||
`acquired` INT NOT NULL, |
|||
`required` INT NOT NULL, |
|||
|
|||
PRIMARY KEY (`item_id`, `stat_id`), |
|||
UNIQUE (`stat_id`, `item_id`) |
|||
) |
|||
-- +goose StatementEnd |
|||
|
|||
-- +goose Down |
|||
-- +goose StatementBegin |
|||
DROP TABLE IF EXISTS item_stat_progress; |
|||
-- +goose StatementEnd |
|||
@ -0,0 +1,15 @@ |
|||
-- +goose Up |
|||
-- +goose StatementBegin |
|||
CREATE TABLE project_requirement_stat ( |
|||
`project_requirement_id` INT NOT NULL, |
|||
`stat_id` INT NOT NULL, |
|||
`required` INT NOT NULL, |
|||
|
|||
PRIMARY KEY (`project_requirement_id`, `stat_id`) |
|||
) |
|||
-- +goose StatementEnd |
|||
|
|||
-- +goose Down |
|||
-- +goose StatementBegin |
|||
DROP TABLE IF EXISTS project_requirement_stat; |
|||
-- +goose StatementEnd |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue