import { Model } from '@nozbe/watermelondb';
import { field, date } from '@nozbe/watermelondb/decorators';
import { Repeat } from '@/types';

export default class RepeatProfile extends Model {
  static table = 'repeat_profiles';

  @field('name') name!: string;
  @field('repeat') repeat!: Repeat;
  @field('repeat_interval') repeatInterval!: number;
  @field('repeat_days') repeatDays!: string;
  @date('created_at') createdAt!: Date;
  @date('updated_at') updatedAt!: Date;
}
