-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correção no model, migration e add seed
- Loading branch information
Showing
4 changed files
with
130 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
backend/src/database/seeds/20241208171800-create-themes-personalizations.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { QueryInterface } from "sequelize"; | ||
|
||
module.exports = { | ||
up: (queryInterface: QueryInterface) => { | ||
return queryInterface.bulkInsert( | ||
"Personalizations", | ||
[ | ||
{ | ||
theme: "light", | ||
company: "Press Ticket", | ||
url: "https://pressticket.com.br", | ||
primaryColor: "#5C4B9B", | ||
secondaryColor: "#D5C6F0", | ||
backgroundDefault: "#FFFFFF", | ||
backgroundPaper: "#F7F7F7", | ||
toolbarColor: "#5C4B9B", | ||
toolbarIconColor: "#FFFFFF", | ||
menuItens: "#FFFFFF", | ||
sub: "#F7F7F7", | ||
textPrimary: "#000000", | ||
textSecondary: "#333333", | ||
divide: "#E0E0E0", | ||
favico: null, | ||
logo: null, | ||
logoTicket: null, | ||
createdAt: new Date(), | ||
updatedAt: new Date() | ||
}, | ||
{ | ||
theme: "dark", | ||
primaryColor: "#8A7DCC", | ||
secondaryColor: "#CCCCCC", | ||
backgroundDefault: "#2E2E3A", | ||
backgroundPaper: "#383850", | ||
toolbarColor: "#8A7DCC", | ||
toolbarIconColor: "#FFFFFF", | ||
menuItens: "#181D22", | ||
sub: "#383850", | ||
textPrimary: "#FFFFFF", | ||
textSecondary: "#CCCCCC", | ||
divide: "#2E2E3A", | ||
favico: null, | ||
logo: null, | ||
logoTicket: null, | ||
createdAt: new Date(), | ||
updatedAt: new Date() | ||
} | ||
], | ||
{} | ||
); | ||
}, | ||
|
||
down: (queryInterface: QueryInterface) => { | ||
return queryInterface.bulkDelete("Personalizations", {}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters