typeorm auto increment id code example
Example: typeorm auto increment id
import {Entity, PrimaryGeneratedColumn} from 'typeorm';
@Entity()
export class SomeWhat{
@PrimaryGeneratedColumn('increment')
public id: number;
....
import {Entity, PrimaryGeneratedColumn} from 'typeorm';
@Entity()
export class SomeWhat{
@PrimaryGeneratedColumn('increment')
public id: number;
....