You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
337 B
TypeScript
20 lines
337 B
TypeScript
import {Table, Column, Model, CreatedAt, UpdatedAt} from 'sequelize-typescript';
|
|
|
|
|
|
@Table
|
|
export class FeedItem extends Model<FeedItem> {
|
|
@Column
|
|
public caption!: string;
|
|
|
|
@Column
|
|
public url!: string;
|
|
|
|
@Column
|
|
@CreatedAt
|
|
public createdAt: Date = new Date();
|
|
|
|
@Column
|
|
@UpdatedAt
|
|
public updatedAt: Date = new Date();
|
|
}
|