|
123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import * as ColumnTypes from '../utilities/ColumnTypes'
-
- const Folder: ColumnTypes.Model = {
- modelName: 'Folder',
- tableName: 'folders',
- options: {
- timestamps: true,
- paranoid: true,
- createdAt: 'createdAt',
- updatedAt: 'updatedAt',
- deletedAt: 'deletedAt',
- },
- attributes: {
- id: {
- allowNull: true,
- primaryKey: true,
- type: ColumnTypes.UUIDV4,
- },
- name: {
- allowNull: false,
- type: ColumnTypes.STRING,
- },
- parentId: {
- allowNull: true,
- type: ColumnTypes.UUIDV4,
- },
- createdAt: {
- allowNull: false,
- type: ColumnTypes.DATE,
- },
- updatedAt: {
- allowNull: false,
- type: ColumnTypes.DATE,
- },
- deletedAt: {
- allowNull: true,
- type: ColumnTypes.DATE,
- },
- }
- }
-
- export default Folder
|