0
sequelize model:create --name tasks --force --attributes "title:string,description:text, data_type:text, shift:str
ing, date:date, start_time:time, end_time:time, type:string, location:string, visible_to_helpers:date, reminders_to_helpers:integer, created_date:time, modifi
ed_date:time"
我試過了。它的工作,但它創建id
主鍵,我想一些TASK_ID如何使用自定義名稱在sequelize-cli中定義自定義主鍵
但是當我試圖這樣它給了我錯誤
equelize model:create --name tasks --force --attributes "task_id:{type:integer, primaryKey: true,autoIncrement:
true}, title:string,description:text, data_type:text, shift:string, date:date, start_time:time, end_time:time, type:string, location:string, visible_to_helpe
rs:date, reminders_to_helpers:integer, created_date:time, modified_date:time"
,並在所有的小寫字母
感謝的情況下無法正常工作
這裏是錯誤