Commit 6374e69f authored by 徐光星's avatar 徐光星

feat: 历史记录时间强制东八区

parent c243416a
/** /**
* @desc 页面信息 * @desc 页面历史记录
*/ */
import { AutoIncrement, Column, DataType, Model, PrimaryKey, Table, AllowNull, ForeignKey, BelongsTo, DefaultScope, Scopes } from 'sequelize-typescript'; import { AutoIncrement, Column, DataType, Model, PrimaryKey, Table, AllowNull, ForeignKey, BelongsTo, DefaultScope, Scopes } from 'sequelize-typescript';
import { PageInfo } from './pageInfo'; import { PageInfo } from './pageInfo';
// @DefaultScope(() => ({
// attributes: ['id', 'primaryColor', 'secondaryColor', 'producedAt'],
// }))
@Scopes({ @Scopes({
relative: { relative: {
attributes: ['id', 'author', 'updatedAt', 'createdAt'] attributes: ['id', 'author', 'updatedAt', 'createdAt']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment