order.ts 745 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import {
  2. Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn, ManyToOne,
  3. } from 'typeorm';
  4. import { Installation } from './installation';
  5. @Entity()
  6. export class Order {
  7. @PrimaryGeneratedColumn()
  8. readonly id: number;
  9. @CreateDateColumn()
  10. readonly createdAt: Date;
  11. @UpdateDateColumn()
  12. readonly updatedAt: Date;
  13. @ManyToOne(() => Installation)
  14. readonly installation: number;
  15. @Column({ nullable: true, default: false })
  16. isCompleted?: boolean;
  17. @Column({ nullable: true })
  18. growiUrl?: string;
  19. @Column({ nullable: true })
  20. growiAccessToken?: string;
  21. @Column({ nullable: true })
  22. proxyAccessToken?: string;
  23. isExpired():boolean {
  24. // TODO GW-5555 implement this
  25. return false;
  26. }
  27. }