spotube/lib/models/database/tables/metadata_plugins.dart
2025-10-25 23:23:27 +06:00

20 lines
812 B
Dart

part of '../database.dart';
class PluginsTable 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 selectedForMetadata =>
boolean().withDefault(const Constant(false))();
BoolColumn get selectedForAudioSource =>
boolean().withDefault(const Constant(false))();
TextColumn get repository => text().nullable()();
TextColumn get pluginApiVersion =>
text().withDefault(const Constant('2.0.0'))();
}