-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmemo.txt
47 lines (34 loc) · 1.67 KB
/
memo.txt
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
40
41
42
43
44
45
46
pour creer table : sequelize model:generate --name Message --attributes content:string
pour migrer : sequelize db:migrate
crere base de donnee : sequelize db:create
Initializes sequelize : sequelize init
sequelize db:migrate:schema:timestamps:add Update migration table to have timestamps
sequelize db:migrate:status List the status of all migrations
sequelize db:migrate:undo Reverts a migration
sequelize db:migrate:undo:all Revert all migrations ran
sequelize db:drop Drop database specified by configuration
sequelize init:config Initializes configuration
sequelize init:migrations Initializes migrations
sequelize init:models Initializes models
sequelize init:seeders Initializes seeders
sequelize migration:generate Generates a new migration file [aliases: migration:create]
sequelize model:generate Generates a model and its migration [aliases: model:create]
[boolean]
#----------------------------------------------------
# procedure pour creer pour la premeiere fois la base de donnees bookstore
#----------------------------------------------------
sequelize db:create
sequelize db:migrate
#----------------------------------------------------
# procedure pour recreer la base de donnees bookstore
#----------------------------------------------------
sequelize db:drop
sequelize db:create
sequelize db:migrate
migrate --> envoie en db
models --> mapper données de base avec objet API
-UI --> Postman
-DB
Serveur web :
-Controller
-Route