-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 855 Bytes
/
Makefile
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
drop-create:
@echo "======== Drop Database ========"
yarn sequelize-cli db:drop
@echo "==============================="
@echo "======== Create Database ========"
yarn sequelize-cli db:create
@echo "================================="
init:
@echo "======== Init Seed ========"
yarn sequelize-cli db:seed:all
@echo "==========================="
generate-model:
@echo "======== Generate Model $(name)s ========>"
yarn sequelize-cli model:generate --name $(name)s --attributes $(file_name)_id:uuid
@echo "=======================================>"
generate-seed:
@echo "======== Generate Seed $(name)s ========>"
yarn sequelize-cli seed:generate --name $(name)
@echo "=============================================>"
migrate:
@echo "======== MIGRATE ========"
yarn sequelize-cli db:migrate
all:
make drop-create
make migrate
make init