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.
18 lines
460 B
18 lines
460 B
import {BaseEntity, Column, Entity, PrimaryColumn} from "typeorm";
|
|
|
|
@Entity({name: 'activations'})
|
|
export class Activation extends BaseEntity {
|
|
|
|
@PrimaryColumn()
|
|
public id: string;
|
|
|
|
@Column({name: 'key', type: 'text', nullable: true})
|
|
public key: string|null;
|
|
|
|
@Column({name: 'created_at', default: () => "CURRENT_TIMESTAMP"})
|
|
public createdAt: Date;
|
|
|
|
@Column({name: 'updated_at', default: () => "CURRENT_TIMESTAMP"})
|
|
public updatedAt: Date;
|
|
}
|