import 'package:drift/drift.dart';

@DataClassName('DriftWorkspace')
class Workspaces extends Table {
  IntColumn get id => integer()();
  TextColumn get name => text().nullable()();
  IntColumn get ownerId => integer().nullable()();
  TextColumn get description => text().nullable()();
  TextColumn get logo => text().nullable()();
  IntColumn get grade => integer().nullable()();
  IntColumn get cap => integer().nullable()();
  TextColumn get currency => text().nullable()();
  IntColumn get status => integer().nullable()();
  IntColumn get createdAt => integer().nullable()();
  IntColumn get updatedAt => integer().nullable()();
  IntColumn get deletedAt => integer().nullable()();
  IntColumn get channelGroupId => integer().nullable()();

  @override
  Set<Column> get primaryKey => {id};

  @override
  String get tableName => 'workspace';
}
