Monorepo containing core modules of Zeichen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
701 B

  1. import * as DataType from 'sequelize'
  2. export default {
  3. options: {
  4. timestamps: false,
  5. },
  6. modelName: 'Tag',
  7. tableName: 'tags',
  8. rawAttributes: {
  9. id: {
  10. allowNull: true,
  11. primaryKey: true,
  12. type: DataType.UUIDV4,
  13. },
  14. name: {
  15. allowNull: false,
  16. type: DataType.STRING,
  17. },
  18. }
  19. }
  20. // import 'reflect-metadata'
  21. // import {
  22. // AllowNull,
  23. // Column,
  24. // Model,
  25. // PrimaryKey,
  26. // Table,
  27. // DataType,
  28. // } from 'sequelize-typescript'
  29. //
  30. // @Table({
  31. // timestamps: false,
  32. // })
  33. // export default class Tag extends Model<Tag> {
  34. // @AllowNull
  35. // @PrimaryKey
  36. // @Column(DataType.UUIDV4)
  37. // id?: string
  38. //
  39. // @Column
  40. // name: string
  41. // }