src/tag/tag.entity.ts
Properties |
id |
id:
|
Type : number
|
Decorators :
@PrimaryGeneratedColumn()
|
Defined in src/tag/tag.entity.ts:10
|
tag |
tag:
|
Type : string
|
Decorators :
@Column()
|
Defined in src/tag/tag.entity.ts:13
|
import {Entity, PrimaryGeneratedColumn, Column, BeforeInsert} from "typeorm";
import {IsEmail, Validate} from "class-validator";
import * as crypto from 'crypto';
import { CustomEmail } from './CustomEmail';
@Entity('tag')
export class TagEntity {
@PrimaryGeneratedColumn()
id: number;
@Column()
tag: string;
}