migrate schema to postgres only
This commit is contained in:
parent
c849b8eb18
commit
97ffae009b
33 changed files with 363 additions and 1238 deletions
|
@ -45,7 +45,7 @@ export class calendar {
|
|||
@UpdateDateColumn()
|
||||
updatedAt: Date;
|
||||
|
||||
@Column({ type: "varchar", nullable: true, default: null, unique: true })
|
||||
@Column({ type: "varchar", length: "255", nullable: true, default: null, unique: true })
|
||||
webpageId: string;
|
||||
|
||||
@ManyToOne(() => calendarType, (t) => t.calendar, {
|
||||
|
|
|
@ -8,6 +8,7 @@ import {
|
|||
OneToMany,
|
||||
OneToOne,
|
||||
PrimaryColumn,
|
||||
PrimaryGeneratedColumn,
|
||||
} from "typeorm";
|
||||
import { membership } from "./membership";
|
||||
import { memberAwards } from "./memberAwards";
|
||||
|
@ -20,7 +21,7 @@ import { memberEducations } from "./memberEducations";
|
|||
|
||||
@Entity()
|
||||
export class member {
|
||||
@PrimaryColumn({ generated: "uuid", type: "varchar" })
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({ type: "varchar", length: 255 })
|
||||
|
@ -38,8 +39,8 @@ export class member {
|
|||
@Column({ type: "varchar", length: 255, unique: true, nullable: true })
|
||||
internalId?: string;
|
||||
|
||||
@Column({ type: "varchar", length: 255, nullable: true })
|
||||
note?: string;
|
||||
@Column({ type: "varchar", length: 255 })
|
||||
note: string;
|
||||
|
||||
@Column()
|
||||
salutationId: number;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { Column, Entity, PrimaryColumn, UpdateDateColumn } from "typeorm";
|
||||
import { Column, Entity, PrimaryColumn, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
|
||||
@Entity()
|
||||
export class query {
|
||||
@PrimaryColumn({ generated: "uuid", type: "varchar" })
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({ type: "varchar", length: 255, unique: true })
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Column, Entity, JoinTable, ManyToMany, OneToMany, PrimaryColumn } from "typeorm";
|
||||
import { Column, Entity, JoinTable, ManyToMany, OneToMany, PrimaryColumn, PrimaryGeneratedColumn } from "typeorm";
|
||||
import { role } from "./role";
|
||||
import { userPermission } from "./user_permission";
|
||||
import { LoginRoutineEnum } from "../../enums/loginRoutineEnum";
|
||||
|
@ -7,7 +7,7 @@ import { APPLICATION_SECRET } from "../../env.defaults";
|
|||
|
||||
@Entity()
|
||||
export class user {
|
||||
@PrimaryColumn({ generated: "uuid", type: "varchar" })
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({ type: "varchar", unique: true, length: 255 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue