mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-06 07:29:42 +00:00
15 lines
463 B
Dart
15 lines
463 B
Dart
part of '../database.dart';
|
|
|
|
@TableIndex(
|
|
name: "uniq_track_match",
|
|
columns: {#trackId, #sourceInfo, #sourceType},
|
|
unique: true,
|
|
)
|
|
class SourceMatchTable extends Table {
|
|
IntColumn get id => integer().autoIncrement()();
|
|
TextColumn get trackId => text()();
|
|
TextColumn get sourceInfo => text().withDefault(const Constant("{}"))();
|
|
TextColumn get sourceType => text()();
|
|
DateTimeColumn get createdAt => dateTime().withDefault(currentDateAndTime)();
|
|
}
|