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

export default class Friendship extends Model {
  static table = 'friendships';

  @field('user_id') userId!: string;
  @field('friend_id') friendId!: string;
  @field('status') status!: 'pending' | 'accepted';
  @date('created_at') createdAt!: Date;
  @date('updated_at') updatedAt!: Date;
}