mirror of
https://github.com/towfiqi/serpbear
synced 2025-06-26 18:15:54 +00:00
- Previously only domain properties worked with SerpBear. This feature adds the ability to add URL properties as well. - Adds a new field "search_console" in Domain Table. - Adds a new Search Console option in Domain Settings Modal UI. - When the new "This is a URL Property" option is enabled, the exact Property URL should be provided. closes #50
47 lines
1.3 KiB
TypeScript
47 lines
1.3 KiB
TypeScript
import { Table, Model, Column, DataType, PrimaryKey, Unique } from 'sequelize-typescript';
|
|
|
|
@Table({
|
|
timestamps: false,
|
|
tableName: 'domain',
|
|
})
|
|
|
|
class Domain extends Model {
|
|
@PrimaryKey
|
|
@Column({ type: DataType.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true })
|
|
ID!: number;
|
|
|
|
@Unique
|
|
@Column({ type: DataType.STRING, allowNull: false, defaultValue: true, unique: true })
|
|
domain!: string;
|
|
|
|
@Unique
|
|
@Column({ type: DataType.STRING, allowNull: false, defaultValue: true, unique: true })
|
|
slug!: string;
|
|
|
|
@Column({ type: DataType.INTEGER, allowNull: false, defaultValue: 0 })
|
|
keywordCount!: number;
|
|
|
|
@Column({ type: DataType.STRING, allowNull: true })
|
|
lastUpdated!: string;
|
|
|
|
@Column({ type: DataType.STRING, allowNull: true })
|
|
added!: string;
|
|
|
|
@Column({ type: DataType.STRING, allowNull: true, defaultValue: JSON.stringify([]) })
|
|
tags!: string;
|
|
|
|
@Column({ type: DataType.BOOLEAN, allowNull: true, defaultValue: true })
|
|
notification!: boolean;
|
|
|
|
@Column({ type: DataType.STRING, allowNull: true, defaultValue: 'daily' })
|
|
notification_interval!: string;
|
|
|
|
@Column({ type: DataType.STRING, allowNull: true, defaultValue: '' })
|
|
notification_emails!: string;
|
|
|
|
@Column({ type: DataType.STRING, allowNull: true })
|
|
search_console!: string;
|
|
}
|
|
|
|
export default Domain;
|