init
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm';
|
||||
|
||||
@Entity('shop_settings')
|
||||
export class ShopSettings {
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
id: string;
|
||||
|
||||
@Column({ type: 'varchar', nullable: true })
|
||||
logoStorageKey: string | null;
|
||||
|
||||
@Column({ type: 'varchar', nullable: true })
|
||||
faviconStorageKey: string | null;
|
||||
|
||||
@Column({ type: 'varchar', nullable: true })
|
||||
simplexLink: string | null;
|
||||
|
||||
@Column({ type: 'varchar', nullable: true })
|
||||
simplexNotificationLink: string | null;
|
||||
|
||||
@Column({ type: 'text', nullable: true })
|
||||
shippingNote: string | null;
|
||||
|
||||
@Column({ type: 'boolean', default: false })
|
||||
notificationsEnabled: boolean;
|
||||
|
||||
@Column({ type: 'boolean', default: true })
|
||||
notifyOnNewOrder: boolean;
|
||||
|
||||
@Column({ type: 'boolean', default: true })
|
||||
notifyOnOrderMessage: boolean;
|
||||
|
||||
@Column({ type: 'integer', nullable: true })
|
||||
simplexNotificationContactId: number | null;
|
||||
|
||||
@CreateDateColumn()
|
||||
createdAt: Date;
|
||||
|
||||
@UpdateDateColumn()
|
||||
updatedAt: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user