import { Association, Attributes, CreationAttributes, CreationOptional, DataTypes, HasManyGetAssociationsMixin, HasOneCreateAssociationMixin, HasOneGetAssociationMixin, InferAttributes, InferCreationAttributes, Model, NonAttribute, Sequelize } from "@sequelize/core";
import {
    PrimaryKey,
    Attribute,
    AutoIncrement,
    NotNull,
    BelongsTo,
    Unique,
    HasMany,
    HasOne,
    UpdatedAt,
    CreatedAt,
} from '@sequelize/core/decorators-legacy';

import { SqliteDialect } from '@sequelize/sqlite3';

export class DBState extends Model<InferAttributes<DBState>, InferCreationAttributes<DBState>>{
    
    @Attribute(DataTypes.INTEGER)
    @PrimaryKey
    @AutoIncrement
    @Unique
    declare id: CreationOptional<number>;
    @Attribute(DataTypes.STRING)
    declare version:number;
    // Date thingies
    
    @CreatedAt
    declare createdAt: CreationOptional<Date>;
    @UpdatedAt
    declare updatedAt: CreationOptional<Date>;
    
}

