bool
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
This commit is contained in:
parent
d703285d03
commit
f81e405d4f
9 changed files with 52 additions and 52 deletions
|
|
@ -56,9 +56,7 @@ class $UsersTable extends Users with TableInfo<$UsersTable, User> {
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("admin" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
static const VerificationMeta _userSettingsMeta = const VerificationMeta(
|
||||
|
|
@ -116,9 +114,7 @@ class $UsersTable extends Users with TableInfo<$UsersTable, User> {
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("is_deleted" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
@override
|
||||
|
|
@ -2120,9 +2116,7 @@ class $RefreshTokensTable extends RefreshTokens
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("is_blacklisted" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
static const VerificationMeta _createdAtMeta = const VerificationMeta(
|
||||
|
|
@ -2562,9 +2556,7 @@ class $TelegramAuthCodesTable extends TelegramAuthCodes
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("is_used" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
static const VerificationMeta _usedAtMeta = const VerificationMeta('usedAt');
|
||||
|
|
@ -3206,9 +3198,7 @@ class $CardPacksTable extends CardPacks
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("enabled" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(true),
|
||||
);
|
||||
@override
|
||||
|
|
@ -3309,9 +3299,7 @@ class $CardPacksTable extends CardPacks
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("is_deleted" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
@override
|
||||
|
|
@ -4291,9 +4279,7 @@ class $GameCardsTable extends GameCards
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("is_deleted" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
@override
|
||||
|
|
@ -6455,9 +6441,7 @@ class $SubscriptionPlansTable extends SubscriptionPlans
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("is_deleted" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
@override
|
||||
|
|
@ -7573,9 +7557,7 @@ class $PaymentsTable extends Payments with TableInfo<$PaymentsTable, Payment> {
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("subscription" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
static const VerificationMeta _createdAtMeta = const VerificationMeta(
|
||||
|
|
@ -8356,9 +8338,7 @@ class $TestsTable extends Tests with TableInfo<$TestsTable, Test> {
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("is_deleted" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
@override
|
||||
|
|
@ -12460,9 +12440,7 @@ class $PromoCodesCampaignsTable extends PromoCodesCampaigns
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("is_deleted" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
@override
|
||||
|
|
@ -13678,9 +13656,7 @@ class $DiscountCampaignsTable extends DiscountCampaigns
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("is_deleted" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
@override
|
||||
|
|
@ -14215,9 +14191,7 @@ class $DiscountsTable extends Discounts
|
|||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("is_deleted" IN (0, 1))',
|
||||
),
|
||||
$customConstraints: '',
|
||||
defaultValue: const Constant(false),
|
||||
);
|
||||
@override
|
||||
|
|
|
|||
|
|
@ -30,7 +30,9 @@ class RefreshTokens extends Table {
|
|||
|
||||
TextColumn get jti => text().unique()(); // JWT ID
|
||||
|
||||
BoolColumn get isBlacklisted => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get isBlacklisted => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
DateTimeColumn get createdAt => dateTime().withDefault(currentTimestamp)();
|
||||
DateTimeColumn get expiresAt => dateTime()();
|
||||
|
|
@ -49,7 +51,9 @@ class TelegramAuthCodes extends Table {
|
|||
TextColumn get firstName => text().nullable()();
|
||||
TextColumn get lastName => text().nullable()();
|
||||
|
||||
BoolColumn get isUsed => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get isUsed => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
DateTimeColumn get usedAt => dateTime().nullable()();
|
||||
|
||||
DateTimeColumn get createdAt => dateTime().withDefault(currentTimestamp)();
|
||||
|
|
|
|||
|
|
@ -23,7 +23,9 @@ class DiscountCampaigns extends Table {
|
|||
// Audit
|
||||
DateTimeColumn get createdAt => dateTime().withDefault(currentTimestamp)();
|
||||
DateTimeColumn get updatedAt => dateTime().withDefault(currentTimestamp)();
|
||||
BoolColumn get isDeleted => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get isDeleted => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
|
|
@ -45,7 +47,9 @@ class Discounts extends Table {
|
|||
// Audit
|
||||
DateTimeColumn get createdAt => dateTime().withDefault(currentTimestamp)();
|
||||
DateTimeColumn get updatedAt => dateTime().withDefault(currentTimestamp)();
|
||||
BoolColumn get isDeleted => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get isDeleted => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
|
|
|
|||
|
|
@ -19,7 +19,9 @@ class CardPacks extends Table {
|
|||
IntColumn get size => integer()(); // количество карточек
|
||||
TextColumn get version => text().nullable()();
|
||||
IntColumn get order => integer().withDefault(const Constant(0))();
|
||||
BoolColumn get enabled => boolean().withDefault(const Constant(true))();
|
||||
BoolColumn get enabled => boolean()
|
||||
.withDefault(const Constant(true))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
// Порядок карточек (JSON array of IDs)
|
||||
TextColumn get cardsOrder => text()
|
||||
|
|
@ -38,7 +40,9 @@ class CardPacks extends Table {
|
|||
// Audit
|
||||
DateTimeColumn get createdAt => dateTime().withDefault(currentTimestamp)();
|
||||
DateTimeColumn get updatedAt => dateTime().withDefault(currentTimestamp)();
|
||||
BoolColumn get isDeleted => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get isDeleted => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
|
|
@ -68,7 +72,9 @@ class GameCards extends Table {
|
|||
// Audit
|
||||
DateTimeColumn get createdAt => dateTime().withDefault(currentTimestamp)();
|
||||
DateTimeColumn get updatedAt => dateTime().withDefault(currentTimestamp)();
|
||||
BoolColumn get isDeleted => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get isDeleted => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
|
|
|
|||
|
|
@ -29,7 +29,9 @@ class Payments extends Table {
|
|||
TextColumn get packs => text()
|
||||
.withDefault(const Constant('[]'))
|
||||
.map(const StringListConverter())();
|
||||
BoolColumn get subscription => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get subscription => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
// Audit
|
||||
DateTimeColumn get createdAt => dateTime().withDefault(currentTimestamp)();
|
||||
|
|
|
|||
|
|
@ -33,7 +33,9 @@ class PromoCodesCampaigns extends Table {
|
|||
// Audit
|
||||
DateTimeColumn get createdAt => dateTime().withDefault(currentTimestamp)();
|
||||
DateTimeColumn get updatedAt => dateTime().withDefault(currentTimestamp)();
|
||||
BoolColumn get isDeleted => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get isDeleted => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@ class SubscriptionPlans extends Table {
|
|||
// Audit
|
||||
DateTimeColumn get createdAt => dateTime().withDefault(currentTimestamp)();
|
||||
DateTimeColumn get updatedAt => dateTime().withDefault(currentTimestamp)();
|
||||
BoolColumn get isDeleted => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get isDeleted => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
|
|
|
|||
|
|
@ -17,7 +17,9 @@ class Tests extends Table {
|
|||
// Audit
|
||||
DateTimeColumn get createdAt => dateTime().withDefault(currentTimestamp)();
|
||||
DateTimeColumn get updatedAt => dateTime().withDefault(currentTimestamp)();
|
||||
BoolColumn get isDeleted => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get isDeleted => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@ class Users extends Table {
|
|||
TextColumn get externalUserId => text().unique()();
|
||||
TextColumn get name => text().nullable()();
|
||||
TextColumn get email => text().nullable()();
|
||||
BoolColumn get admin => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get admin => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
// UserSettings (JSON)
|
||||
TextColumn get userSettings => text().nullable()();
|
||||
|
|
@ -21,7 +23,9 @@ class Users extends Table {
|
|||
// Audit fields
|
||||
DateTimeColumn get createdAt => dateTime().withDefault(currentTimestamp)();
|
||||
DateTimeColumn get updatedAt => dateTime().withDefault(currentTimestamp)();
|
||||
BoolColumn get isDeleted => boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get isDeleted => boolean()
|
||||
.withDefault(const Constant(false))
|
||||
.customConstraint('')(); // PostgreSQL использует нативный BOOLEAN, не нужен CHECK
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
|
|
|
|||
Loading…
Reference in a new issue