mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
18 lines
460 B
TypeScript
18 lines
460 B
TypeScript
|
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;
|
||
|
}
|