Introduces blog_posts table and blogEnabled on shop_settings for optional storefront blog.
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
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;
|
|
|
|
@Column({ type: 'boolean', default: false })
|
|
blogEnabled: boolean;
|
|
|
|
@CreateDateColumn()
|
|
createdAt: Date;
|
|
|
|
@UpdateDateColumn()
|
|
updatedAt: Date;
|
|
}
|