chatbridge/server/entities/group.entity.ts
ansible user/allowed to read system logs 22340d8a96 working group controller
2023-07-24 18:40:22 -07:00

20 lines
No EOL
405 B
TypeScript

import { Entity, Column, Index, OneToMany } from 'typeorm';
import Model from './model.entity';
import { Channel } from "./channel.entity";
@Entity('groups')
export class Group extends Model {
@Column({
unique: true
})
name: string;
@Column({
default: true
})
enable: boolean;
@OneToMany(() => Channel, (channel) => channel.bridge)
channels: Channel[]
}