spotube/lib/models/database/tables/metadata_plugins.dart
2025-09-05 22:52:06 +06:00

17 lines
706 B
Dart

part of '../database.dart';
class MetadataPluginsTable extends Table {
IntColumn get id => integer().autoIncrement()();
TextColumn get name => text().withLength(min: 1, max: 50)();
TextColumn get description => text()();
TextColumn get version => text()();
TextColumn get author => text()();
TextColumn get entryPoint => text()();
TextColumn get apis => text().map(const StringListConverter())();
TextColumn get abilities => text().map(const StringListConverter())();
BoolColumn get selected => boolean().withDefault(const Constant(false))();
TextColumn get repository => text().nullable()();
TextColumn get pluginApiVersion =>
text().withDefault(const Constant('1.0.0'))();
}