-
Notifications
You must be signed in to change notification settings - Fork 0
/
.blueprint
39 lines (39 loc) · 1.9 KB
/
.blueprint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
created:
- app/Http/Controllers/CategoryController.php
- app/Http/Controllers/TodoController.php
- app/Http/Controllers/TagController.php
- database/factories/CategoryFactory.php
- database/factories/TodoFactory.php
- database/factories/TagFactory.php
- database/migrations/2022_06_14_181655_create_categories_table.php
- database/migrations/2022_06_14_181656_create_todos_table.php
- database/migrations/2022_06_14_181657_create_tags_table.php
- database/migrations/2022_06_14_181658_create_tag_todo_table.php
- app/Models/Category.php
- app/Models/Todo.php
- app/Models/Tag.php
- app/Http/Requests/CategoryStoreRequest.php
- app/Http/Requests/CategoryUpdateRequest.php
- app/Http/Requests/TodoStoreRequest.php
- app/Http/Requests/TodoUpdateRequest.php
- app/Http/Requests/TagStoreRequest.php
- app/Http/Requests/TagUpdateRequest.php
- app/Http/Resources/CategoryCollection.php
- app/Http/Resources/CategoryResource.php
- app/Http/Resources/TodoCollection.php
- app/Http/Resources/TodoResource.php
- app/Http/Resources/TagCollection.php
- app/Http/Resources/TagResource.php
- tests/Feature/Http/Controllers/CategoryControllerTest.php
- tests/Feature/Http/Controllers/TodoControllerTest.php
- tests/Feature/Http/Controllers/TagControllerTest.php
updated:
- routes/api.php
- tests/Pest.php
- tests/Feature/ExampleTest.php
- tests/Unit/ExampleTest.php
models:
User: { }
Category: { user_id: 'foreign:users OnDelete:cascade', title: 'string:100', slug: 'string:255 nullable', relationships: { hasMany: Todo, belongsTo: User } }
Todo: { user_id: 'foreign:users OnDelete:cascade', category_id: 'foreign:categories', slug: 'string:255 nullable', body: 'string:255', relationships: { belongsTo: 'Category, User', belongsToMany: Tag } }
Tag: { title: 'string:50', relationships: { belongsToMany: Todo } }