extend base schema for future features
This commit is contained in:
parent
b7b6694407
commit
0b7de992c8
5 changed files with 21 additions and 2 deletions
|
@ -6,9 +6,10 @@ export const calendar_type_table = new Table({
|
|||
columns: [
|
||||
{ name: "id", type: getTypeByORM("int"), isPrimary: true, isGenerated: true, generationStrategy: "increment" },
|
||||
{ name: "type", type: getTypeByORM("varchar"), length: "255", isUnique: true, isNullable: false },
|
||||
{ name: "nscdr", type: getTypeByORM("boolean"), isNullable: false },
|
||||
{ name: "nscdr", type: getTypeByORM("boolean"), isNullable: false, default: false },
|
||||
{ name: "color", type: getTypeByORM("varchar"), length: "255", isNullable: false },
|
||||
{ name: "passphrase", type: getTypeByORM("varchar"), length: "255", isNullable: true },
|
||||
{ name: "sendToWebpage", type: getTypeByORM("boolean"), isNullable: false, default: false },
|
||||
],
|
||||
});
|
||||
|
||||
|
@ -45,6 +46,14 @@ export const calendar_table = new Table({
|
|||
default: "CURRENT_TIMESTAMP(6)",
|
||||
onUpdate: "CURRENT_TIMESTAMP(6)",
|
||||
},
|
||||
{
|
||||
name: "webpageId",
|
||||
type: getTypeByORM("varchar"),
|
||||
length: "255",
|
||||
isNullable: true,
|
||||
default: null,
|
||||
isUnique: true,
|
||||
},
|
||||
{ name: "typeId", type: getTypeByORM("int"), isNullable: false },
|
||||
],
|
||||
foreignKeys: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue