import 'package:floor/floor.dart';

import './base_entity.dart';

@Entity(tableName: 'clubs')
class Club extends BaseEntity {
  @PrimaryKey(autoGenerate: true)
  final int? id;
  final String name;
  final String ownerFirstName;
  final String ownerLastName;

  Club(this.id, this.name, this.ownerFirstName, this.ownerLastName,
      {DateTime? createdAt, DateTime? updatedAt})
      : super(updatedAt ?? DateTime.now(), createdAt: createdAt);
}
