mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
17 lines
706 B
Dart
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'))();
|
|
}
|